Skip to content

Instantly share code, notes, and snippets.

@djw8605
Created June 25, 2014 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djw8605/88fdc897a9cd2a839328 to your computer and use it in GitHub Desktop.
Save djw8605/88fdc897a9cd2a839328 to your computer and use it in GitHub Desktop.
pbs_local_submit_attributes.sh for HTCondor-CE GPU
#!/bin/sh
# Set walltime according to request; the batch system
# may reject this, of course!
if [ -n "$Walltime" ]; then
echo "#PBS -l walltime=$Walltime"
else
echo "#PBS -l walltime=24:00:00"
fi
# Set the number of requested GPUs
if [ -n "$RequestGpus" ]; then
echo "#SBATCH --gres=gpu:$RequestGpus"
echo ". /etc/profile.d/tusker.sh"
echo "module load cuda/6.0"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment