From 2384723aab62017b1d22a0bc467038c9756b4212 Mon Sep 17 00:00:00 2001
From: "Rochette GLC Mr (PG/R - Elec Electronic Eng)" <g.rochette@surrey.ac.uk>
Date: Thu, 6 Jan 2022 15:12:19 +0000
Subject: [PATCH] Initial commit

---
 condor/launch.sh      |  7 +++++++
 condor/submit_file.sh | 36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 condor/launch.sh
 create mode 100644 condor/submit_file.sh

diff --git a/condor/launch.sh b/condor/launch.sh
new file mode 100644
index 0000000..6d5a952
--- /dev/null
+++ b/condor/launch.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+#duration=$[ ( $RANDOM % 120 )  + 1 ]
+#echo $duration
+#sleep $duration
+git clone $1 Repository && cd Repository && git checkout $2
+echo ${@:3}
+exec $3 ${@:4}
diff --git a/condor/submit_file.sh b/condor/submit_file.sh
new file mode 100644
index 0000000..d0d18fe
--- /dev/null
+++ b/condor/submit_file.sh
@@ -0,0 +1,36 @@
+# ----------------------------------------------------------------------------------------------------------------------
+executable = /bin/bash
+# ----------------------------------------------------------------------------------------------------------------------
+universe = docker
+docker_image = registry.eps.surrey.ac.uk/guillaume_docker:33437
+should_transfer_files = YES
+environment = mount=/vol/vssp/SF_datasets/multiview/Human3.6M/data,/vol/research/content4all,/vol/research/NOBACKUP/CVSSP/derived
+# ----------------------------------------------------------------------------------------------------------------------
+log = $ENV(PWD)/logs/$(cluster).$(process).log
+output = $ENV(PWD)/logs/$(cluster).$(process).out
+error = $ENV(PWD)/logs/$(cluster).$(process).err
+# ----------------------------------------------------------------------------------------------------------------------
+request_CPUs = 1
+request_memory = 1G
+request_disk = 1G
+# ----------------------------------------------------------------------------------------------------------------------
++CanCheckpoint = False
++JobRunTime = 72
+# ----------------------------------------------------------------------------------------------------------------------
+on_exit_hold = ExitCode != 0
+# ----------------------------------------------------------------------------------------------------------------------
+launcher = $ENV(PWD)/launch.sh
+# ----------------------------------------------------------------------------------------------------------------------
+repository = /vol/research/content4all/3dhumanpose/projects/FilesystemTest
+# ----------------------------------------------------------------------------------------------------------------------
+branch = HEAD
+# ----------------------------------------------------------------------------------------------------------------------
+python = /vol/research/content4all/3dhumanpose/Anaconda/miniconda3/envs/ml-env/bin/python
+# ----------------------------------------------------------------------------------------------------------------------
+arguments = $(launcher) $(repository) $(branch) $(python) $(args)
+# ----------------------------------------------------------------------------------------------------------------------
+args = $(script)
+# ----------------------------------------------------------------------------------------------------------------------
+script = test.py
+# ----------------------------------------------------------------------------------------------------------------------
+queue 5000
-- 
GitLab