-
Notifications
You must be signed in to change notification settings - Fork 34
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
ArgParse doesn't work when Julia started in parallel #7
Comments
Instead of trying to call ArgParse locally on each worker, just refer back to the master
|
Sorry for not answering earlier. About the error message, I guess it's something to do with the fact that the worker processes are launched by invoking the julia executable with some command line options, which then ArgParse is attempting to parse (failing). But I'd argue that argument parsing would typically be done on the master process, and then sent to the workers. IIUC, what your solution is doing is make each worker call the master for the parsing. Probably not a big deal, but doesn't seem very efficient. It would be better if the script you're calling would create the workers itself with |
If you create the file "test.jl" containing the example provided in the documentation:
Then running the command
julia test.jl --opt1 test
runs as intended, butjulia -p 2 test.jl --opt1 test
returns the following errorThe text was updated successfully, but these errors were encountered: