I want to use multiple threads on multiple workers. Will the two sets of commands produce equivalent results?
export JULIA_NUM_THREADS=20
julia
addprocs(12)
export JULIA_NUM_THREADS=20
julia -p 12
I want to use multiple threads on multiple workers. Will the two sets of commands produce equivalent results?
export JULIA_NUM_THREADS=20
julia
addprocs(12)
export JULIA_NUM_THREADS=20
julia -p 12
Yes, I believe those are two ways to add 12 workers to the main process. You can check nprocs()
to be sure.