How to run in parallel using all CPUs from a laptop? #3418
Unanswered
iuryt
asked this question in
Computational science!
Replies: 1 comment
-
The easiest way is to use the environment variable $ JULIA_NUM_THREADS=8 julia See https://docs.julialang.org/en/v1/manual/multi-threading/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
While discussing with a student at IIT Madras (Chennai, India), she asked me how simple would be to run her simulation in parallel using the cores from her laptop. I just realized that I never tried that and we couldn't find an example on the docs while using the search engine.
I know this should be straightforward, maybe
julia -p nproc simulation.jl
?Can we specify the number of the cores used within the code?
Beta Was this translation helpful? Give feedback.
All reactions