Created
June 25, 2014 03:07
-
-
Save djw8605/88fdc897a9cd2a839328 to your computer and use it in GitHub Desktop.
pbs_local_submit_attributes.sh for HTCondor-CE GPU
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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