Skip to content

Commit 9874fe4

Browse files
authored
Merge pull request #75 from danielwe/patch-1
Add info on threading
2 parents fc7bfa5 + 72e5050 commit 9874fe4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ Some additional functions that are also available:
3636
* `fdiv(x,y)`: divide (`x ./ y` in Base)
3737
* `sincos(x)`: returns `(sin(x), cos(x))`
3838

39+
## Setting the number of threads
40+
41+
Accelerate is multithreaded by default. You can set an upper limit on the number of threads through the `VECLIB_MAXIMUM_THREADS` environment variable; for example, for single-threaded execution, start Julia as `VECLIB_MAXIMUM_THREADS=1 julia`. Accelerate does not support the `BLAS.set_num_threads(nthreads)` and `BLAS.get_num_threads()` API used by other BLAS backends (`set_num_threads` is a no-op and `get_num_threads` returns a hardcoded default).
42+
3943
## Example
4044

4145
To use the Accelerate BLAS and LAPACK, simply load the library:

0 commit comments

Comments
 (0)