GPU queue Sample Job Script – Cray


Sample Script :
#!/bin/sh
#PBS -N GPU-job
#PBS -l select=2:ncpus=1:naccelerators=1:accelerator_model="Tesla_P100-PCIE-12GB"
#PBS -l walltime=24:00:00
#PBS -q gpu
#PBS -l place=scatter
#PBS -S /bin/sh@sdb -V
. /opt/modules/default/init/sh
#module switch PrgEnv-cray/6.0.4 PrgEnv-gnu
#module switch gcc/7.2.0 gcc/4.9.3
# module load cudatoolkit
# module load craype-accel-nvidia35

cd $PBS_O_WORKDIR
aprun -j 1 -n 2 -N 1 ./application > output.log