@@ -190,20 +190,24 @@ a master process to establish a connection before dying.
190
190
### [ ` JULIA_NUM_THREADS ` ] (@id JULIA_NUM_THREADS)
191
191
192
192
An unsigned 64-bit integer (` uint64_t ` ) that sets the maximum number of threads
193
- available to Julia. If ` $JULIA_NUM_THREADS ` exceeds the number of available
194
- CPU threads (logical cores), then the number of threads is set to the number of CPU threads. If
195
- ` $JULIA_NUM_THREADS ` is not positive or is not set, or if the number of CPU
196
- threads cannot be determined through system calls, then the number of threads is
197
- set to ` 1 ` .
193
+ available to Julia. If ` $JULIA_NUM_THREADS ` is not positive or is not set, or
194
+ if the number of CPU threads cannot be determined through system calls, then the
195
+ number of threads is set to ` 1 ` .
198
196
199
- !!! note
197
+ If ` $JULIA_NUM_THREADS ` is set to ` auto ` , then the number of threads will be set
198
+ to the number of CPU threads.
200
199
201
- `JULIA_NUM_THREADS` must be defined before starting julia; defining it in `startup.jl` is too late in the startup process.
200
+ !!! note
201
+ ` JULIA_NUM_THREADS ` must be defined before starting julia; defining it in
202
+ ` startup.jl ` is too late in the startup process.
202
203
203
204
!!! compat "Julia 1.5"
204
205
In Julia 1.5 and above the number of threads can also be specified on startup
205
206
using the ` -t ` /` --threads ` command line argument.
206
207
208
+ !!! compat "Julia 1.7"
209
+ The ` auto ` value for ` $JULIA_NUM_THREADS ` requires Julia 1.7 or above.
210
+
207
211
### ` JULIA_THREAD_SLEEP_THRESHOLD `
208
212
209
213
If set to a string that starts with the case-insensitive substring ` "infinite" ` ,
0 commit comments