clearseplex
clearseplex

Reputation: 729

Not possible to increase number of threads in Julia

I changed the number of threads to 4 following the documentation. I know that the maximum number of threads is limited by Sys.CPU_THREADS which is 8 in my case. But I can't change it to 8. Why is this?

What I am doing: set JULIA_NUM_THREADS=8 in cmd

There shows no error, but in Julia I still have Threads.nthreads() = 4

Upvotes: 2

Views: 1563

Answers (1)

laborg
laborg

Reputation: 871

If you use Atom you can set the number of threads in the settings of the julia-client package (see screenshot). The default is set to number of cores which would probably be the four you are experiencing.

enter image description here

Upvotes: 4

Related Questions