forked from marcopede/CRFdet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
condor-start.example
55 lines (43 loc) · 2.24 KB
/
condor-start.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# build the condot script to train all classes
cls = ["bicycle"]
#["aeroplane","bicycle","bird","boat","bottle","bus","car","cat","chair","cow","diningtable","dog","horse","motorbike","person","pottedplant","sheep","sofa", "train","tvmonitor"]
#[0"aeroplane",1"bicycle",2"bird",3"boat",4"bottle",5"bus",6"car",7"cat",8"chair",9"cow",10"diningtable",
# 11"dog",12"horse",13"motorbike",14"person",15"pottedplant",16"sheep",17"sofa",18 "train",19"tvmonitor"]
#common part
header="""
Universe = vanilla
#Requirements = ( Cpus >= {cpus} && Memory >= 10000 && konick and donovan have python2.6!
Requirements = ( (Arch == "X86_64") && (machine != "rat.esat.kuleuven.be") && (machine != "ox.esat.kuleuven.be") && (machine != "chapeau.esat.kuleuven.be") && (machine != "unuk.esat.kuleuven.be") && (machine != "kochab.esat.kuleuven.be") && (machine != "bellegems.esat.kuleuven.be") &&(machine != "ophelia.esat.kuleuven.be") && (machine != "ymir.esat.kuleuven.be") && (machine != "idesbald.esat.kuleuven.be") && (machine != "bokkereyer.esat.kuleuven.be") && (machine != "livinus.esat.kuleuven.be") && (machine != "bornem.esat.kuleuven.be") && (machine != "vicarus.esat.kuleuven.be") && (machine != "vicarus.esat.kuleuven.be") && (machine != "achel.esat.kuleuven.be") && (machine != "donovan.esat.kuleuven.be") && (machine != "koninck.esat.kuleuven.be") )
RequestCpus = {cpus}
RequestMemory = 3800
NiceUser = True
+RequestWalltime = (24 * 3600)
#20hours = 72000
Executable = /usr/bin/python
getenv = True
"""
conf="pascal"#"condor_rigid"
args="Arguments = -u denseCRF.py %s %s"
exec "from config_%s import *"%conf
streams="""
Output = {path}/{cls}{numcl}_{name}$(Cluster).$(Process).out
Error = {path}/{cls}{numcl}_{name}$(Cluster).$(Process).err
Log = {path}/{cls}{numcl}_{name}$(Cluster).$(Process).log
Notification = Never
Queue
"""
streams="""
Output = /dev/null
Error = {path}/{cls}{numcl}_{name}$(Cluster).$(Process).err
Log = {path}/{cls}{numcl}_{name}$(Cluster).$(Process).log
Notification = Never
Queue
"""
f=open("start.job","w")
f.write(header.format(cpus=cfg.multipr))
for l in cls:
f.write(args%(l,conf))
f.write(streams.format(path=cfg.testpath,name=cfg.testspec,cls=l,numcl=cfg.numcl))
f.close()
import os
os.system("condor_submit start.job")