Skip to content

Instantly share code, notes, and snippets.

@Tushar-N Tushar-N/
Last active Feb 20, 2018

What would you like to do?
Condor submit script: use csub <cmd> from a submit node
# find the location to save files to
cv_dir=`expr "$cmd" : '.*--cv_dir \([^ ]*\).*'`
# make cv_dir and create two files: and
mkdir $cv_dir
cat > $cv_dir/ << EOF
universe = vanilla
Executable = /lusr/bin/bash
Arguments = $cv_dir/
+Group = "GRAD"
+Project = "AI_ROBOTICS"
+ProjectDescription = "Research Work"
Requirements = TARGET.GPUSlot && CUDAGlobalMemoryMb >= 2000
getenv = True
request_GPUs = 1
+GPUJob = true
Log = $cv_dir/run.log
Error = $cv_dir/run.err
Output = $cv_dir/run.out
Queue 1
cat > $cv_dir/ << EOF
# Call condor_submit on the generated submit file
source ~/.bashrc
condor_submit $cv_dir/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.