Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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