Example 2 - One Node, Multiple Processors

This is similar to what a modern desktop or laptop is likely to have. Software that can use more than one processor may be described as multicore, multiprocessor, or mulithreaded. Some examples of software that can benefit from this are MATLAB and Stata/MP. You should read the documentation for your software to see if this is one of its capabilities.


#!/bin/bash

#SBATCH --job-name JOBNAME

#SBATCH --nodes=1

#SBATCH --cpus-per-task=4

#SBATCH --mem-per-cpu=1g

#SBATCH --time=00:15:00

#SBATCH --account=test #SBATCH --partition=standard

#SBATCH --mail-type=NONE

# COMMENT:The application(s) to execute along with its input arguments and options:
<insert commands here>

srun --cpu-bind=none hostname -s