File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010# Load the latest Julia Module
1111ml load julia
1212
13- # this will load the activate.sh in the root path of this repository -- the
14- # __job_script_dir points to the location of _this_ file in the file system (
15- # the bash invocation is a bit of arcane code to convert bash_source to a
16- # reasonable path on the file system). things like this are not strictly
17- # necessary, but they reduce the likelihood of mishaps (eg. forgetting to
18- # source activate.sh, or running this script from a different working
19- # directory)
20- __job_script_dir=$(
21- cd -- " $( dirname -- " ${bash_source[0]} " ) " & > /dev/null && pwd
22- )
23- source ${__job_script_dir} /../../activate.sh
13+ # This will load the activate.sh in the root path of this repository
14+ # IMPORTATION: for this relative path to work, you need to be in this
15+ # directory when running `sbatch`
16+ source ../../activate.sh
2417
2518# Run the Julia code -- we're usign `srun` to launch Julia. This is necessary
2619# to configure MPI. If you tried to use `MPI.Init()` outside of an srun, then
You can’t perform that action at this time.
0 commit comments