Skip to content

Commit

Permalink
skip AVX2-less log-check for py36
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Feb 18, 2021
1 parent aab63f5 commit ae755ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ outputs:
- python -c "from numpy.core._multiarray_umath import __cpu_features__; print(f'Testing version with AVX2-support - ' + str(__cpu_features__['AVX2']))"
# rerun test suite again without AVX2 support
- pytest tests --log-file-level=INFO --log-file=log.txt
- cat log.txt # [not win]
- type log.txt # [win]
# opposite test to above, this should have run without AVX2
- python -c "q = open('log.txt').readlines(); import sys; sys.exit(0 if 'Loading faiss.' in [x[35:-1] for x in q] else 1)"
- cat log.txt && sleep 2 # [not win]
- type log.txt # [win]
# opposite test to above, this should have run without AVX2; disable for py36 due to NPY_DISABLE_CPU_FEATURES not working
- python -c "q = open('log.txt').readlines(); import sys; sys.exit(0 if 'Loading faiss.' in [x[35:-1] for x in q] else 1)" # [py>36]

# running the following test requires an actual GPU device, which is not available in CI
# - pytest faiss/gpu/test/
Expand Down

0 comments on commit ae755ab

Please sign in to comment.