#!/bin/bash #----------------------------------------------------------------- # Example SLURM job script to run serial applications on MOGON. # # This script requests one core (out of 20) on one Broadwell-node. # The job will have access to all the memory in the node. Note # that this job will be charged as if all 20 cores were requested. #----------------------------------------------------------------- #SBATCH -J mysimplejob # Job name #SBATCH -o mysimplejob.%j.out # Specify stdout output file (%j expands to jobId) #SBATCH -p parallel # Queue name #SBATCH -N 1 # Total number of nodes requested (20 cores/node on a standard Broadwell-node) #SBATCH -n 1 # Total number of tasks #SBATCH -c 20 # Total number of cores for the single task #SBATCH -t 00:30:00 # Run time (hh:mm:ss) - 0.5 hours #SBATCH -A account # Specify allocation to charge against # Load all necessary modules if needed (these are examples) # Loading modules in the script ensures a consistent environment. module load gcc/6.3.0 # Launch the executable with one task distributed on 20 cores: srun