Child pages
  • Slurm - single-core
Skip to end of metadata
Go to start of metadata

#!/bin/bash -l
# NOTE the -l flag!


# This is an example job file for a single core CPU bound program
# Note that all of the following statements below that begin
# with #SBATCH are actually commands to the SLURM scheduler.
# Please copy this file to your home directory and modify it
# to suit your needs.
 
# If you need any help, please email rc-help@rit.edu

# Name of the job - You'll probably want to customize this.
 #SBATCH --job-name=test-single-core

 # Standard out and Standard Error output files
 #SBATCH --output test.out
 #SBATCH --error test.err

#To send emails, set the adcdress below and remove one of the "#" signs.
##SBATCH --mail-user <user_id>@rit.edu
 
# notify on state change: BEGIN, END, FAIL or ALL
#SBATCH --mail-type=ALL
 
# 5 days is the run time MAX, anything over will be KILLED unless you talk RC
# Request Time limit day-hrs:min:sec
 #SBATCH --time=0-0:0:0

# Put the job in the partition that matches the account and request one core
#SBATCH --account <account_name> 
#SBATCH --partition <qos_partition>
#SBATCH --cpus-per-task=1 #Advise the Slurm controller that ensuing job steps will require ncpus number of proc    essors per task.  Default is 1 processor per task.

# Job memory requirements in MB <default>, MB=m, GB=g, or TB=t
# Request 3 GB
#SBATCH --mem=3g

 #
# Your job script goes below this line.  
#
echo "(${HOSTNAME}) sleeping for 1 minute to simulate work (ish)"
sleep 60
echo "(${HOSTNAME}) Ahhh, alarm clock!"


  • No labels