gridengine/local/epilog.d/95-GPU_release.sh

18 lines
350 B
Bash
Raw Normal View History

#!/bin/bash
###############################################
# release allocated GPUS
###############################################
### set variables
LOCK_FILE=/tmp/gpu-lockfile
files=$(grep -s -l $JOB_ID ${LOCK_FILE}-* | xargs echo)
if [ ! -z "${files}" ] ; then
for file in ${files} ; do
rm -f ${file} || exit 1
done
fi
exit 0