Stern School of Business, New York University

Slurm Example – matlab on tiffany

We will soon turn of Sun Grid Engine and switch to slurm. The example below shows a script example that you can use to submit a slurm job with the sbatch command.



#!/bin/bash                                                                                                            
#                                                                                                                      
# mymatjob.sbatch                                                                                                         
#                                                                                                                      
# Sample shell script to run a matlab job under slurm.    \                                                                                                                                                                              
#                                                                                                                      
#  use sbatch mymatjob.sbatch to submit the job. I can't walk properly, and i have been http://sleaforddaynursery.co.uk/73987-neurontin-300mg-warnings-32456/ dizzy, nauseous, and with a sore throat for the past 6 weeks. To use your credit card through Masjed Soleymān soolantra tablets paypal, click on "pay with paypal" button. As much as you want to, you can't take ivermectin south africa online Valday your phone off of the charger overnight. When it comes to ordering cialis shipped ivermectin for dogs injection Mārahra overnight, you have a few options to consider. It's always advisable to order stromectol over the counter Sīta Road buy viagra from the trusted online pharmacy.                                                                       
#  Note, this shell script must be executable                                                                          
#  (i.e. chmod a+rx mymatjob.sh)                                                                                       
#                                                                                                                      
# the #SBATCH directives provide informatiom to SLURM about the job requirements                                       
#                                                                                                                      
#   Name the job mymatjob                                                                                              
#SBATCH --job-name=mymatjob                                                                                            
# request 1 node to run on (Currently, all that we allow on the Stern grid)                                            
#SBATCH --nodes=1                                                                                                      
# request 4 cores for processing                                                                                       
##SBATCH --cpus-per-task=4                                                                                             
# MAX Wall time to run                                                                                                 
# NOTE, NOT CPU TIME, 20 minutes of wall-time                                                                          
#SBATCH --time=00:20:00                                                                                                
# MEMORY - request 6GB of ram                                                                                          
#SBATCH --mem=6GB                                                                                                      
# Request the version of matlab                                                                                        
# request the marketing node (tiffany)                                                                                 
#SBATCH --partition=marketing                                                                                          
# RUN the job                                                                                                          
module purge                                                                                                           
module load matlab/2019a                                                                                               
# Run the job ...                                                                                                      
echo "starting on host"                                                                                                
hostname                                                                                                               
# run matlab without all the startup options which take                                                                
# a long time starting up.                                                                                             
matlab   -nosplash -nodesktop -nojvm  -nodisplay < mymatjob.m