Skip to content

Commit

Permalink
Merge branch 'master' into public
Browse files Browse the repository at this point in the history
  • Loading branch information
marekkokot committed Mar 21, 2023
2 parents 91d70e9 + b206029 commit bcf7ad0
Show file tree
Hide file tree
Showing 21 changed files with 50 additions and 2,495 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ jobs:
CLR_LOSSY: ./test/A.thaliana.fastq.quan

steps:
- uses: actions/checkout@v2
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: make
run: make -j2

Expand Down Expand Up @@ -109,10 +112,13 @@ jobs:

macos-remote:
name: macOS build (remote)
runs-on: macOS-latest
runs-on: macOS-11

steps:
- uses: actions/checkout@v2
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: make
run: make -j2

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/self-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ jobs:
env:
EXE: ./bin/colord
steps:
- uses: actions/checkout@v2
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive

- name: make (g++ 9)
run: |
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "src/colord/libs/mimalloc"]
path = src/colord/libs/mimalloc
url = https://github.com/microsoft/mimalloc
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@ $(SRC)/reference_genome.o
COBJS = \
$(SRC)/libs/md5/md5.o

MIMALLOC_OBJ=$(SRC)/libs/mimalloc/mimalloc.o

ifeq ($(UNAME_S),Darwin)
LIB_ZLIB = $(SRC)/../common/libs/zlib/libz.mac.a
LIBS = \
$(SRC)/../common/libs/zlib/libz.mac.a \
$(SRC)/libs/mimalloc/libmimalloc.mac.a \
$(SRC)/libs/count_kmers/libfiltering_kmc.mac.a \
$(SRC)/libs/count_kmers/libbz2.1.0.5.dylib

Expand All @@ -69,7 +70,6 @@ else
LIB_ZLIB = $(SRC)/../common/libs/zlib/libz.a
LIBS = \
$(SRC)/../common/libs/zlib/libz.a \
$(SRC)/libs/mimalloc/libmimalloc.a \
$(SRC)/libs/count_kmers/libfiltering_kmc.a \
$(SRC)/libs/count_kmers/libbz2.a

Expand All @@ -78,7 +78,11 @@ endif

all: $(BIN_DIR)/colord $(BIN_DIR)/libcolord_api.a $(BIN_DIR)/api_example

$(BIN_DIR)/colord: $(OBJS) $(COBJS) $(OBJS_COMMON) $(LIB_FILTERING_KMC)
$(MIMALLOC_OBJ):
$(CXX) -DMI_MALLOC_OVERRIDE -O3 -DNDEBUG -fPIC -Wall -Wextra -Wno-unknown-pragmas -fvisibility=hidden -ftls-model=initial-exec -fno-builtin-malloc -c -I $(SRC)/libs/mimalloc/include $(SRC)/libs/mimalloc/src/static.c -o $(MIMALLOC_OBJ)


$(BIN_DIR)/colord: $(MIMALLOC_OBJ) $(OBJS) $(COBJS) $(OBJS_COMMON) $(LIB_FILTERING_KMC)
-mkdir -p $(BIN_DIR)
$(CXX) $(CLINK) -o $@ $^ $(LIBS)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A versatile compressor of third generation sequencing reads.
## Quick start

```bash
git clone https://github.com/refresh-bio/colord
git clone --recurse-submodules https://github.com/refresh-bio/colord
cd colord && make
cd bin

Expand Down
8 changes: 4 additions & 4 deletions src/API/API.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,26 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/API_example/API_example.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,26 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
Expand Down
21 changes: 7 additions & 14 deletions src/colord/colord.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
Expand Down Expand Up @@ -75,15 +75,15 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<IncludePath>../common/libs/zlib;libs/CLI11/;libs/kmc_api/;libs/edlib/;libs/mimalloc/;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
<IncludePath>../common/libs/zlib;libs/CLI11/;libs/kmc_api/;libs/edlib/;libs/mimalloc/include;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<LinkIncremental>false</LinkIncremental>
<IncludePath>libs/CLI11/;libs/zlib/;libs/kmc_api/;libs/edlib/;libs/mimalloc/;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<IncludePath>libs/CLI11/;../common/libs/zlib/;libs/kmc_api/;libs/edlib/;libs/mimalloc/;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
<IncludePath>libs/CLI11/;../common/libs/zlib/;libs/kmc_api/;libs/edlib/;libs/mimalloc/include;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
Expand Down Expand Up @@ -186,6 +186,7 @@
<ClCompile Include="libs\kmc_api\kmer_api.cpp" />
<ClCompile Include="libs\kmc_api\mmer.cpp" />
<ClCompile Include="libs\md5\md5.c" />
<ClCompile Include="libs\mimalloc\src\static.c" />
<ClCompile Include="main.cpp" />
<ClCompile Include="override-new-delete.cpp" />
<ClCompile Include="pooled_threads.cpp" />
Expand Down Expand Up @@ -246,14 +247,6 @@
</ItemGroup>
<ItemGroup>
<Library Include="..\common\libs\zlib\zlibstat.lib" />
<Library Include="libs\mimalloc\mimalloc-static-debug.lib">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">false</ExcludedFromBuild>
</Library>
<Library Include="libs\mimalloc\mimalloc-static.lib">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</ExcludedFromBuild>
</Library>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\filtering-KMC\kmer_counter.vcxproj">
Expand Down
8 changes: 6 additions & 2 deletions src/colord/colord.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
<Filter Include="libs\md5">
<UniqueIdentifier>{13e7a6b7-2caf-409c-8619-d18be35be574}</UniqueIdentifier>
</Filter>
<Filter Include="libs\mimalloc">
<UniqueIdentifier>{eb946dda-8c53-4c13-a57e-86f122dfc350}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="main.cpp">
Expand Down Expand Up @@ -126,6 +129,9 @@
<ClCompile Include="decompression_common.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="libs\mimalloc\src\static.c">
<Filter>libs\mimalloc</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="params.h">
Expand Down Expand Up @@ -265,8 +271,6 @@
</ClInclude>
</ItemGroup>
<ItemGroup>
<Library Include="libs\mimalloc\mimalloc-static.lib" />
<Library Include="libs\mimalloc\mimalloc-static-debug.lib" />
<Library Include="..\common\libs\zlib\zlibstat.lib" />
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions src/colord/libs/mimalloc
Submodule mimalloc added at dd7348
Binary file removed src/colord/libs/mimalloc/libmimalloc.a
Binary file not shown.
Binary file removed src/colord/libs/mimalloc/libmimalloc.mac.a
Binary file not shown.
Loading

0 comments on commit bcf7ad0

Please sign in to comment.