diff --git a/UD_any/launchBatches.py b/UD_any/launchBatches.py index 621db1143fe296ea902423b3b5a129bbd00d0e43..0c63e21ad7b1696d1bc1fb3acaaec649bdfb4b4f 100755 --- a/UD_any/launchBatches.py +++ b/UD_any/launchBatches.py @@ -29,8 +29,7 @@ def launchTrain(mode, expName, arguments, launcher, nbHours) : ############################################################################### def launchTrainBash(mode, expName, arguments) : - devScore = "--devScore" - subprocess.Popen("./train.sh %s bin/%s %s --silent %s"%(mode,expName,arguments,devScore), + subprocess.Popen("./train.sh %s bin/%s %s --silent"%(mode,expName,arguments), shell=True, stdout=open("%s.stdout"%expName,'w'), stderr=open("%s.stderr"%expName,'w')) ############################################################################### @@ -41,8 +40,6 @@ def nbMaxLongJobs() : ############################################################################### def launchTrainOar(mode, expName, arguments, nbHours) : - devScore = "--devScore" - bestEffort = getOarNbLongJobs() >= nbMaxLongJobs() command = "oarsub" @@ -53,7 +50,7 @@ def launchTrainOar(mode, expName, arguments, nbHours) : command += " -O %s.stdout"%expName command += " -p \"gpu IS NOT NULL\"" command += " -l walltime=%d:00:00"%nbHours - command += " \'" + "./train.sh %s bin/%s %s --silent %s"%(mode,expName,arguments,devScore) + "\'" + command += " \'" + "./train.sh %s bin/%s %s --silent"%(mode,expName,arguments) + "\'" os.system(command) ############################################################################### @@ -75,8 +72,8 @@ def launchEvalBash(mode, expName) : ############################################################################### ############################################################################### -def launchEvalOar(mode, expName,nbHours) : - bestEffort = getOarNbLongJobs() >= nbMaxLongJobs() +def launchEvalOar(mode, expName, nbHours) : + bestEffort = getOarNbLongJobs() >= nbMaxLongJobs() and nbHours > 10 command = "oarsub" command += " -t besteffort" if bestEffort else ""