Skip to content

Commit 693564f

Browse files
authored
Merge pull request #4 from maxdoblas/ft/update-release
Precompiled release binaries w/ and w/o vector support
2 parents 3a8c05f + fd56bb4 commit 693564f

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

.github/workflows/publish_release_binaries.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,35 @@ jobs:
2020
echo "build-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
2121
echo "bin-dir=${{ github.workspace }}/bin" >> "$GITHUB_OUTPUT"
2222
23-
- name: Configure CMake
23+
- name: Configure CMake (w/ vector support)
2424
run: >
2525
cmake -B ${{ steps.strings.outputs.build-dir }}
2626
-DQUICKED_NONATIVE=ON
2727
-S ${{ github.workspace }}
2828
29-
- name: Build
29+
- name: Build (w/ vector support)
3030
run: cmake --build ${{ steps.strings.outputs.build-dir }} --config Release --parallel 2
3131

32-
- name: Move the target artifacts
32+
- name: Move the target artifacts (w/ vector support)
33+
run: |
34+
mkdir -p ${{ steps.strings.outputs.bin-dir }}/release
35+
mv ${{ steps.strings.outputs.bin-dir }}/align_benchmark ${{ steps.strings.outputs.bin-dir }}/release/align_benchmark-x86_64-SIMD
36+
mv ${{ steps.strings.outputs.bin-dir }}/generate_dataset ${{ steps.strings.outputs.bin-dir }}/release/generate_dataset-x86_64-SIMD
37+
38+
- name: Clean
39+
run: cmake --build ${{ steps.strings.outputs.build-dir }} --target clean
40+
41+
- name: Configure CMake (w/o vector support)
42+
run: >
43+
cmake -B ${{ steps.strings.outputs.build-dir }}
44+
-DQUICKED_NONATIVE=ON
45+
-DQUICKED_FORCESCALAR=ON
46+
-S ${{ github.workspace }}
47+
48+
- name: Build (w/o vector support)
49+
run: cmake --build ${{ steps.strings.outputs.build-dir }} --config Release --parallel 2
50+
51+
- name: Move the target artifacts (w/o vector support)
3352
run: |
3453
mkdir -p ${{ steps.strings.outputs.bin-dir }}/release
3554
mv ${{ steps.strings.outputs.bin-dir }}/align_benchmark ${{ steps.strings.outputs.bin-dir }}/release/align_benchmark-x86_64

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ enable_testing()
99

1010
# Options
1111
option(QUICKED_NONATIVE "Compile QuickEd for generic x86_64" OFF)
12+
option(QUICKED_FORCESCALAR "Compile QuickEd without vector extensions (SSE,AVX)" OFF)
1213

1314
# Set build type to Release if not specified
1415
if (NOT CMAKE_BUILD_TYPE)
@@ -61,7 +62,10 @@ add_compile_options(-fPIC)
6162
if (NOT QUICKED_NONATIVE)
6263
add_compile_options(-march=native)
6364
else()
64-
add_compile_options(-march=x86-64 -msse4.1)
65+
add_compile_options(-march=x86-64)
66+
if (NOT QUICKED_FORCESCALAR)
67+
add_compile_options(-msse4.1 -mavx2)
68+
endif()
6569
endif()
6670

6771
# Output directories

0 commit comments

Comments
 (0)