Calculations/Dipolar-Gas-Simulator/bwhpc_matlab_gpe_sim_gpu.slurm

39 lines
1015 B
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=gpu-single
# Request number of nodes and GPU for job
2024-06-18 19:01:35 +02:00
#SBATCH --nodes=1
2024-06-22 23:36:13 +02:00
#SBATCH --ntasks-per-node=1
2024-11-20 21:49:50 +01:00
#SBATCH --gres=gpu:A100:1
#SBATCH --mem=8G
2024-06-18 19:01:35 +02:00
# Estimated wallclock time for job
#SBATCH --time=16: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 GPUs allocated to job: $SLURM_GPUS"
2024-06-18 19:01:35 +02:00
# Load module
2024-11-15 15:35:17 +01:00
module load math/matlab/R2023a
2024-06-18 19:01:35 +02:00
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