This is how I’ve set up my slurm scripts
#SBATCH --mail-type=END,FAIL
#SBATCH --mem-per-cpu=4GB
#SBATCH --ntasks=1
#SBATCH --nodes=1
#SBATCH --cpus-per-task=4
julia --threads ${SLURM_CPUS_PER_TASK} scripts/my_script.jl
and then scripts/my_script.jl would be my julia program that uses several threads. It looks like mine has 1 task and 4 cpus per task, while yours has 4 tasks. Not sure if that is a problem