-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from ssciwr/fix_17_openmp
enable OpenMP on linux
- Loading branch information
Showing
5 changed files
with
28 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,9 @@ jobs: | |
env: | ||
CIBW_TEST_REQUIRES: 'pytest numpy' | ||
CIBW_TEST_COMMAND: 'pytest {project}/python/tests' | ||
CIBW_TEST_SKIP: "pp*" | ||
CIBW_TEST_SKIP: 'pp*' | ||
CIBW_SKIP: "*-manylinux_i686" | ||
CIBW_BUILD_VERBOSITY: 3 | ||
|
||
strategy: | ||
matrix: | ||
|
@@ -20,6 +22,10 @@ jobs: | |
with: | ||
submodules: 'recursive' | ||
|
||
- name: enable openmp on linux | ||
run: echo 'CIBW_ENVIRONMENT=HAMMING_WITH_OPENMP=ON' >> $GITHUB_ENV | ||
if: runner.os == 'Linux' | ||
|
||
- uses: pypa/[email protected] | ||
|
||
- uses: actions/upload-artifact@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,7 @@ def build_extension(self, ext): | |
'-DHAMMING_BUILD_PYTHON=ON', | ||
'-DBUILD_TESTING=OFF', | ||
'-DHAMMING_BUILD_BENCHMARKS=OFF', | ||
'-DHAMMING_WITH_OPENMP=OFF', | ||
'-DHAMMING_WITH_OPENMP=' + os.environ.get('HAMMING_WITH_OPENMP', 'OFF') | ||
] | ||
|
||
cfg = 'Debug' if self.debug else 'Release' | ||
|
@@ -77,7 +77,7 @@ def build_extension(self, ext): | |
|
||
setup( | ||
name='hammingdist', | ||
version='0.11.0', | ||
version='0.12.0', | ||
author='Dominic Kempf, Liam Keegan', | ||
author_email='[email protected]', | ||
description='A fast tool to calculate Hamming distances', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters