-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command line flag for number of threads #34309
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To create a setup where:
Then one currently needs to jump through some hoops to setup the
JULIA_NUM_THREADS
environment variable for each worker process. Thus one can't use a simpleaddprocs
with something likeSshClusterManater
. A possible workaround is writing a shell script which sets the environment variable and launchesjulia
and specify this as the Julia executable.It would be much more convenient and natural if
julia
provided a command line option for specifying the number of threads. If such a command line option is explicitly specified, it should override the value ofJULIA_NUM_THREADS
, if any.This setup is useful because the threads within each worker process automatically share "everything" without having to resort to constructs like
SharedArray
. Of course this also means one needs to be more careful.The text was updated successfully, but these errors were encountered: