Skip to content

Commit

Permalink
Set OMP_NUM_THREADS env
Browse files Browse the repository at this point in the history
  • Loading branch information
kyamagu committed Jan 28, 2024
1 parent 7b57f99 commit 6374254
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
CIBW_BEFORE_TEST_LINUX: pip install torch --index-url https://download.pytorch.org/whl/cpu
CIBW_TEST_COMMAND: >
env -u FAISS_OPT_LEVEL pytest {project}/faiss/tests &&
env -u FAISS_OPT_LEVEL pytest {project}/faiss/tests/torch_test_contrib.py
env -u FAISS_OPT_LEVEL OMP_NUM_THREADS=1 pytest {project}/faiss/tests/torch_test_contrib.py
- uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ git clone \
--depth 1 \
--filter=blob:none \
--sparse \
--branch ${LLVM_VERSION:-"llvmorg-11.1.0"} \
--branch ${LLVM_VERSION:-"llvmorg-17.0.6"} \
https://github.com/llvm/llvm-project.git \
third-party/llvm-project && \
cd third-party/llvm-project && \
Expand Down

0 comments on commit 6374254

Please sign in to comment.