...
Julia is developed to work within parallel computing environments within asynchronous tasks, multi-threading, distributing computing as well as on GPUs.
For getting started with Multi-Threading and using multicores, you need to explicitly inform Julia how many cores to use, for example:
...
Code Block |
---|
[@m001 testing]$ export JULIA_NUM_THREADS=16
[@m001 testing]$ julia num_of_threads.jl
Num of Threads: 16
# Only 8 cores will actually be used. |
MPI
ARCC has performed some basic testing with the MPI package on Beartooth. The process we used to set up the environment was:
Expand | ||
---|---|---|
| ||
|
We have observed the following warning the first (and only) time running MPI related code:
Code Block |
---|
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for MPI [da04e1cc-30fd-572f-bb4f-1f8673147195]
│ exception = Required dependency MPIPreferences [3da0fdf6-3ccc-4f1b-acd9-58baa6c99267] failed to load from a cache file.
└ @ Base loading.jl:1349
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for MPI [da04e1cc-30fd-572f-bb4f-1f8673147195]
│ exception = Required dependency MPIPreferences [3da0fdf6-3ccc-4f1b-acd9-58baa6c99267] failed to load from a cache file.
└ @ Base loading.jl:1349 |
Note: Every time your wish to run/test your MPI related Julia code you will need to module load
the openmpi
module alongside julia
.