From 92215d5d78068ae579510d69069ea238f348bde2 Mon Sep 17 00:00:00 2001 From: Franck Dary <franck.dary@lis-lab.fr> Date: Tue, 14 Apr 2020 15:05:06 +0200 Subject: [PATCH] devScore is not the default, and don't go into besteffort if job is not long --- UD_any/launchBatches.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/UD_any/launchBatches.py b/UD_any/launchBatches.py index 621db11..0c63e21 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 "" -- GitLab