Skip to content

Commit

Permalink
Fixed slight slow down in build mode introduced in the previous ver…
Browse files Browse the repository at this point in the history
…sion.
  • Loading branch information
agudys authored Oct 3, 2024
1 parent 074b294 commit 5e28bf9
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 343 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
runs-on: [self-hosted, kmer-db, '${{ matrix.machine }}']

steps:
- name: clean
run: rm -rf ${{ github.workspace }}/*
- uses: actions/checkout@v4
with:
submodules: recursive
Expand All @@ -30,23 +32,21 @@ jobs:
matrix:
machine: [x64_linux]
platform: [avx2]
compiler: [g++-13]
compiler: [14]
include:
- {machine: arm64_linux, platform: arm8, compiler: g++-12}
- {machine: x64_mac, platform: avx2, compiler: g++-13}
- {machine: arm64_mac, platform: m1, compiler: g++-13}
- {machine: arm64_linux, platform: arm8, compiler: 12}
- {machine: x64_mac, platform: avx2, compiler: 13}
- {machine: arm64_mac, platform: m1, compiler: 13}

runs-on: [self-hosted, kmer-db, '${{ matrix.machine }}']

steps:
- name: make
run: |
make clean
make -j32 CXX=${{matrix.compiler}} STATIC_LINK=true PLATFORM=${{ matrix.platform }}
make -j32 CXX=g++-${{matrix.compiler}} CC=gcc-${{matrix.compiler}} STATIC_LINK=true PLATFORM=${{ matrix.platform }}
- name: tar artifacts
run: tar -cvzf kmer-db.tar.gz kmer-db LICENSE



########################################################################################
help:
name: Print usage
Expand Down
52 changes: 32 additions & 20 deletions .github/workflows/self-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
runs-on: [self-hosted, kmer-db, '${{ matrix.machine }}']

steps:
- name: clean
run: rm -rf ${{ github.workspace }}/*

- uses: actions/checkout@v4
with:
submodules: recursive
Expand All @@ -31,22 +34,23 @@ jobs:
fail-fast: false
matrix:
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
compiler: [g++-11, g++-12, g++-13]
compiler: [11, 12, 13]
force_zlib: [true, false]
include:
- {machine: x64_linux, platform: avx2, compiler: 14, force_zlib: false}
- {machine: x64_linux, platform: avx2}
- {machine: arm64_linux, platform: arm8}
- {machine: x64_mac, platform: avx2}
- {machine: arm64_mac, platform: m1}
exclude:
- {machine: arm64_linux, compiler: g++-13}
force_zlib: [true, false]

- {machine: arm64_linux, compiler: 13}

runs-on: [self-hosted, kmer-db, '${{ matrix.machine }}']

steps:
- name: make (${{matrix.compiler}}, FORCE_ZLIB=${{matrix.force_zlib}}, PLATFORM=${{ matrix.platform}})
run: |
make -j32 CXX=${{matrix.compiler}} FORCE_ZLIB=${{matrix.force_zlib}} PLATFORM=${{ matrix.platform }}
make -j32 CXX=g++-${{matrix.compiler}} CC=gcc-${{matrix.compiler}} FORCE_ZLIB=${{matrix.force_zlib}} PLATFORM=${{ matrix.platform }}
cp ./kmer-db ./kmer-db-${{matrix.compiler}}-${{matrix.force_zlib}}
make clean
Expand All @@ -58,19 +62,19 @@ jobs:
fail-fast: false
matrix:
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
compiler: [g++-11, g++-12, g++-13]
compiler: [11, 12, 13]
force_zlib: [false, true]
mode: [unknown_mode]
exclude:
- {machine: arm64_linux, compiler: g++-13}
- {machine: arm64_linux, compiler: 13}
include:
- {machine: x64_linux, compiler: g++-13, force_zlib: false, mode: all2all}
- {machine: x64_linux, compiler: g++-13, force_zlib: false, mode: all2all-parts}
- {machine: x64_linux, compiler: g++-13, force_zlib: false, mode: all2all-sp}
- {machine: x64_linux, compiler: g++-13, force_zlib: false, mode: new2all}
- {machine: x64_linux, compiler: g++-13, force_zlib: false, mode: one2all}
- {machine: x64_linux, compiler: g++-13, force_zlib: false, mode: distance}
- {machine: x64_linux, compiler: g++-13, force_zlib: false, mode: minhash}
- {machine: x64_linux, compiler: 14, force_zlib: false, mode: all2all}
- {machine: x64_linux, compiler: 14, force_zlib: false, mode: all2all-parts}
- {machine: x64_linux, compiler: 14, force_zlib: false, mode: all2all-sp}
- {machine: x64_linux, compiler: 14, force_zlib: false, mode: new2all}
- {machine: x64_linux, compiler: 14, force_zlib: false, mode: one2all}
- {machine: x64_linux, compiler: 14, force_zlib: false, mode: distance}
- {machine: x64_linux, compiler: 14, force_zlib: false, mode: minhash}

runs-on: [self-hosted, kmer-db, '${{ matrix.machine }}']

Expand All @@ -91,10 +95,13 @@ jobs:
fail-fast: false
matrix:
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
compiler: [g++-11, g++-12, g++-13]
exclude:
- {machine: arm64_linux, compiler: g++-13}
compiler: [11, 12, 13]
force_zlib: [false]
include:
- {machine: x64_linux, compiler: 14, force_zlib: false}
exclude:
- {machine: arm64_linux, compiler: 13}

runs-on: [self-hosted, kmer-db, '${{ matrix.machine }}']

env:
Expand Down Expand Up @@ -213,11 +220,16 @@ jobs:
fail-fast: false
matrix:
machine: [x64_linux, x64_mac, arm64_linux, arm64_mac]
compiler: [g++-11, g++-12, g++-13]
exclude:
- {machine: arm64_linux, compiler: g++-13}
compiler: [11, 12, 13]
force_zlib: [false]
threads: [1, 2, 16]
include:
- {machine: x64_linux, compiler: 14, force_zlib: false, threads: 1}
- {machine: x64_linux, compiler: 14, force_zlib: false, threads: 2}
- {machine: x64_linux, compiler: 14, force_zlib: false, threads: 16}
exclude:
- {machine: arm64_linux, compiler: 13}


runs-on: [self-hosted, kmer-db, '${{ matrix.machine }}']

Expand Down
2 changes: 2 additions & 0 deletions src/console_build.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ void BuildConsole::run(const Params& params){
<< "Total: " << totalTime.count() << endl
<< "Kmer sorting/unique time: " << sortingTime.count() << endl
<< "Database update time:" << processingTime.count() << endl
#ifdef COLLECT_DETAILED_TIMES
<< db->printDetailedTimes() << endl
#endif
<< "STATISTICS" << endl << db->printStats() << endl;

std::chrono::duration<double> dt{ 0 };
Expand Down
Loading

0 comments on commit 5e28bf9

Please sign in to comment.