File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ Base.Threads.threadid
88Base.Threads.nthreads
99```
1010
11+ See also [ Multi-Threading] (@ref man-multithreading).
1112## Synchronization
1213
1314``` @docs
Original file line number Diff line number Diff line change @@ -18,10 +18,16 @@ The number of execution threads is controlled either by using the
1818[ ` JULIA_NUM_THREADS ` ] (@ref JULIA_NUM_THREADS) environment variable. When both are
1919specified, then ` -t ` /` --threads ` takes precedence.
2020
21+ The number of threads can either be specified as an integer (` --threads=4 ` ) or as ` auto `
22+ (` --threads=auto ` ), where ` auto ` sets the number of threads to the number of local CPU
23+ threads.
24+
2125!!! compat "Julia 1.5"
2226 The ` -t ` /` --threads ` command line argument requires at least Julia 1.5.
2327 In older versions you must use the environment variable instead.
2428
29+ !!! compat "Julia 1.7"
30+ Using ` auto ` together with the environment variable ` JULIA_NUM_THREADS ` requires at least Julia 1.7.
2531Lets start Julia with 4 threads:
2632
2733``` bash
You can’t perform that action at this time.
0 commit comments