Skip to content

Commit

Permalink
Updated SLURM job id
Browse files Browse the repository at this point in the history
  • Loading branch information
Hjorthmedh committed Feb 2, 2024
1 parent 3f45508 commit 59bcf19
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export N_WORKERS=$SLURM_NTASKS
export IPNWORKERS=50

# Clear old ipyparallel
export IPYTHONDIR="/cfs/klemming/scratch/${USER:0:1}/$USER/.ipython"
export IPYTHONDIR="/cfs/klemming/scratch/${USER:0:1}/${USER}/.ipython-${SLURM_JOB_ID}"
rm -r $IPYTHONDIR
export IPYTHON_PROFILE=default

Expand Down Expand Up @@ -128,4 +128,5 @@ export FI_CXI_DEFAULT_VNI=$(od -vAn -N4 -tu < /dev/urandom)

srun -n $N_WORKERS $SNUDDA_DIR/examples/parallel/KTH_PDC/input_tuning/x86_64/special -mpi -python $SNUDDA_DIR/snudda/input/input_tuning.py simulate $NETWORK_DIR --seed_list $SEED_LIST


# Cleanup IPYTHONDIR
rm -r $IPYTHONDIR
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export N_WORKERS=$SLURM_NTASKS
export IPNWORKERS=50

# Clear old ipyparallel
export IPYTHONDIR="/cfs/klemming/scratch/${USER:0:1}/$USER/.ipython"
export IPYTHONDIR="/cfs/klemming/scratch/${USER:0:1}/$USER/.ipython-${SLURM_JOB_ID}"
rm -r $IPYTHONDIR
export IPYTHON_PROFILE=default

Expand Down Expand Up @@ -128,4 +128,5 @@ export FI_CXI_DEFAULT_VNI=$(od -vAn -N4 -tu < /dev/urandom)

srun -n $N_WORKERS $SNUDDA_DIR/examples/parallel/KTH_PDC/input_tuning/x86_64/special -mpi -python $SNUDDA_DIR/snudda/input/input_tuning.py simulate $NETWORK_DIR --seed_list $SEED_LIST


# Cleanup IPYTHONDIR
rm -r $IPYTHONDIR
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export N_WORKERS=$SLURM_NTASKS
export IPNWORKERS=50

# Clear old ipyparallel
export IPYTHONDIR="/cfs/klemming/scratch/${USER:0:1}/$USER/.ipython"
export IPYTHONDIR="/cfs/klemming/scratch/${USER:0:1}/$USER/.ipython-${SLURM_JOB_ID}"
rm -r $IPYTHONDIR
export IPYTHON_PROFILE=default

Expand Down Expand Up @@ -129,3 +129,5 @@ export FI_CXI_DEFAULT_VNI=$(od -vAn -N4 -tu < /dev/urandom)
srun -n $N_WORKERS $SNUDDA_DIR/examples/parallel/KTH_PDC/input_tuning/x86_64/special -mpi -python $SNUDDA_DIR/snudda/input/input_tuning.py simulate $NETWORK_DIR --seed_list $SEED_LIST


# Cleanup IPYTHONDIR
rm -r $IPYTHONDIR
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export N_WORKERS=$SLURM_NTASKS
export IPNWORKERS=100

# Clear old ipyparallel
export IPYTHONDIR="/cfs/klemming/scratch/${USER:0:1}/$USER/.ipython"
export IPYTHONDIR="/cfs/klemming/scratch/${USER:0:1}/$USER/.ipython-${SLURM_JOB_ID}"
rm -r $IPYTHONDIR
export IPYTHON_PROFILE=default

Expand Down Expand Up @@ -130,4 +130,6 @@ export FI_CXI_DEFAULT_VNI=$(od -vAn -N4 -tu < /dev/urandom)

srun -n $N_WORKERS $SNUDDA_DIR/examples/parallel/KTH_PDC/input_tuning/x86_64/special -mpi -python $SNUDDA_DIR/snudda/input/input_tuning.py simulate $NETWORK_DIR --seed_list $SEED_LIST

# Cleanup IPYTHONDIR
rm -r $IPYTHONDIR

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export N_WORKERS=$SLURM_NTASKS
export IPNWORKERS=100

# Clear old ipyparallel
export IPYTHONDIR="/cfs/klemming/scratch/${USER:0:1}/$USER/.ipython"
export IPYTHONDIR="/cfs/klemming/scratch/${USER:0:1}/$USER/.ipython-${SLURM_JOB_ID}"
rm -r $IPYTHONDIR
export IPYTHON_PROFILE=default

Expand Down Expand Up @@ -130,4 +130,5 @@ export FI_CXI_DEFAULT_VNI=$(od -vAn -N4 -tu < /dev/urandom)

srun -n $N_WORKERS $SNUDDA_DIR/examples/parallel/KTH_PDC/input_tuning/x86_64/special -mpi -python $SNUDDA_DIR/snudda/input/input_tuning.py simulate $NETWORK_DIR --seed_list $SEED_LIST


# Cleanup IPYTHONDIR
rm -r $IPYTHONDIR
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export N_WORKERS=$SLURM_NTASKS
export IPNWORKERS=100

# Clear old ipyparallel
export IPYTHONDIR="/cfs/klemming/scratch/${USER:0:1}/$USER/.ipython"
export IPYTHONDIR="/cfs/klemming/scratch/${USER:0:1}/$USER/.ipython-${SLURM_JOB_ID}"
rm -r $IPYTHONDIR
export IPYTHON_PROFILE=default

Expand Down Expand Up @@ -131,3 +131,5 @@ export FI_CXI_DEFAULT_VNI=$(od -vAn -N4 -tu < /dev/urandom)
srun -n $N_WORKERS $SNUDDA_DIR/examples/parallel/KTH_PDC/input_tuning/x86_64/special -mpi -python $SNUDDA_DIR/snudda/input/input_tuning.py simulate $NETWORK_DIR --seed_list $SEED_LIST


# Cleanup IPYTHONDIR
rm -r $IPYTHONDIR

0 comments on commit 59bcf19

Please sign in to comment.