#!/bin/csh # use subdir name for job id and log file names set id = $cwd:t # nodes @ n = 4 # tasks, for nodes with 2 GPUs @ nt = 2 * $n # use all eight GPUs on four nodes sbatch --ntasks=$nt --nodes=$n -J $id -o $id.%j gpujob.csh