Child pages
  • Slurm - simple mpi
Skip to end of metadata
Go to start of metadata

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

#simple-mpi.h


# This is an example job file for a multi-core MPI job.
# 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=mpi_test    # Job name

# Standard out and Standard Error output files
#SBATCH --output=mpi_test_%j.out   # Instruct Slurm to connect the batch script's standard output directly to the file name specified in the "filename pattern".
#SBATCH --error=mpi_test_%j.err    # Instruct Slurm to connect the batch script's standard error directly to the file name specified in the "filename pattern".

# 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 with RC
# Time limit days-hrs:min:sec
#SBATCH --time=0-0:0:0

# Put the job in the appropriate partition matchine the account and request FOUR cores
#SBATCH --account= <account name>   #this is the name created for your project when you filled out the questionnaire
#SBATCH --partition=tier3  #currently tier3 is the partition where everyone is put.  To get a listing of partitions where the account can run use the command my-accounts
#SBATCH --ntasks 4  #This option advises the Slurm controller that job steps run within the allocation will launch a maximum of number tasks and to provide for sufficient resources. The default is one task per node.

# Job memory requirements in MB=m (default),GB=g, or TB=t
#SBATCH --mem=3g

#
# Your job script goes below this line.  
# example of a simple job
echo "(${HOSTNAME}) sleeping for 1 minute to simulate work (ish)"
echo "(${HOSTNAME}) even though this script has claimed four cores..."
echo "(${HOSTNAME}) ...it won't be using all of them (or any of them."
sleep 60
echo "(${HOSTNAME}) Ahhh, alarm clock!"


  • No labels