diff --git a/example_submission_script.sh b/example_submission_script.sh
index 9629d7d42d112381bc4f80deb545334f035410fe..5e4841ce6d6612aeedfda1c4f3eaf1689a2be878 100644
--- a/example_submission_script.sh
+++ b/example_submission_script.sh
@@ -13,6 +13,8 @@ module purge
 
 source config.sh
 
+export SRUN_CPUS_PER_TASK="$SLURM_CPUS_PER_TASK"
+
 echo "Running with image $SINGULARITY_IMAGE"
 echo "Check that your virtual environment is in the PYTHONPATH:"
 srun singularity run $SINGULARITY_IMAGE bash -c '