Single and Multithreaded Sample Script

#!/bin/bash
#
#SBATCH --job-name=my_job
#SBATCH --output=my_output_file.txt
#
#SBATCH --mail-type=ALL
#SBATCH --mail-user=my-email@utsa.edu
#SBATCH --ntasks=1
. /etc/profile.d/modules.sh
srun hostname
srun sleep60

Parallel or OpenMPI Sample Script

#!/bin/bash
#
#SBATCH --job-name=my_job
#SBATCH --output=my_output_file.txt
#SBATCH --mail-type=ALL
#SBATCH --mail-user=my-email@utsa.edu
#SBATCH --ntasks=40
. /etc/profile.d/modules.sh
module load openmpi/3.0.1
echo $SLURM_NTASKS
srun mpirun -np $SLURM_NTASKS my_mpi_program.exe

-- AdminUser - 05 Nov 2019
Topic revision: r2 - 24 Jun 2020, AdminUser
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding UTSA Research Support Group? Send feedback