Skip to content

Commit

Permalink
Docs: Multi-threading in BLAS
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Nov 25, 2024
1 parent 2bef182 commit 4f351ad
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ cmake -D CMAKE_BUILD_TYPE=Release \
cmake --build build_release --config Release
```

When benchmarking, make sure to disable multi-threading in the BLAS library, as it may interfere with the results:

```sh
export OPENBLAS_NUM_THREADS=1 # for OpenBLAS
export MKL_NUM_THREADS=1 # for Intel MKL
export VECLIB_MAXIMUM_THREADS=1 # for Apple Accelerate
export BLIS_NUM_THREADS=1 # for BLIS
```

## Python

Testing:
Expand Down

0 comments on commit 4f351ad

Please sign in to comment.