Skip to content

Commit fc2f7cb

Browse files
authored
Update job_mpi_singlenode.sh
1 parent 5b90cd0 commit fc2f7cb

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

parts/mpi/job_mpi_singlenode.sh

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,10 @@
1010
# Load the latest Julia Module
1111
ml 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

0 commit comments

Comments
 (0)