Calculations/Dipolar-Gas-Simulator/bwhpc_matlab_gpe_sim_cpu.slurm

39 lines
1.0 KiB
Plaintext
Raw Normal View History

2024-06-18 19:01:35 +02:00
#!/bin/bash
########### Begin SLURM header ###########
#Partition
2024-11-15 15:35:17 +01:00
#SBATCH --partition=cpu-single
2024-06-18 19:01:35 +02:00
# Request number of nodes and CPU cores per node for job
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=10
#SBATCH --mem=24G
2024-06-18 19:01:35 +02:00
# Estimated wallclock time for job
2024-06-20 12:16:42 +02:00
#SBATCH --time=12:00:00
2024-06-18 19:01:35 +02:00
#SBATCH --job-name=simulation
#SBATCH --error=simulation.err
#SBATCH --output=simulation.out
########### End SLURM header ##########
echo "Working Directory: $PWD"
echo "Running on host $HOSTNAME"
echo "Job id: $SLURM_JOB_ID"
echo "Job name: $SLURM_JOB_NAME"
echo "Number of nodes allocated to job: $SLURM_JOB_NUM_NODES"
echo "Number of cores allocated to job: $SLURM_JOB_CPUS_PER_NODE"
# Load module
module load math/matlab/R2023a
echo Directory is `pwd`
echo "Initiating Job..."
# Start a Matlab program
matlab -nodisplay -nosplash -r "Scripts.run_on_cluster"
# notice for tests
echo "Job terminated successfully"
exit