Skip to content
Snippets Groups Projects
Commit 92215d5d authored by Franck Dary's avatar Franck Dary
Browse files

devScore is not the default, and don't go into besteffort if job is not long

parent def5d077
No related branches found
No related tags found
No related merge requests found
...@@ -29,8 +29,7 @@ def launchTrain(mode, expName, arguments, launcher, nbHours) : ...@@ -29,8 +29,7 @@ def launchTrain(mode, expName, arguments, launcher, nbHours) :
############################################################################### ###############################################################################
def launchTrainBash(mode, expName, arguments) : def launchTrainBash(mode, expName, arguments) :
devScore = "--devScore" subprocess.Popen("./train.sh %s bin/%s %s --silent"%(mode,expName,arguments),
subprocess.Popen("./train.sh %s bin/%s %s --silent %s"%(mode,expName,arguments,devScore),
shell=True, stdout=open("%s.stdout"%expName,'w'), stderr=open("%s.stderr"%expName,'w')) shell=True, stdout=open("%s.stdout"%expName,'w'), stderr=open("%s.stderr"%expName,'w'))
############################################################################### ###############################################################################
...@@ -41,8 +40,6 @@ def nbMaxLongJobs() : ...@@ -41,8 +40,6 @@ def nbMaxLongJobs() :
############################################################################### ###############################################################################
def launchTrainOar(mode, expName, arguments, nbHours) : def launchTrainOar(mode, expName, arguments, nbHours) :
devScore = "--devScore"
bestEffort = getOarNbLongJobs() >= nbMaxLongJobs() bestEffort = getOarNbLongJobs() >= nbMaxLongJobs()
command = "oarsub" command = "oarsub"
...@@ -53,7 +50,7 @@ def launchTrainOar(mode, expName, arguments, nbHours) : ...@@ -53,7 +50,7 @@ def launchTrainOar(mode, expName, arguments, nbHours) :
command += " -O %s.stdout"%expName command += " -O %s.stdout"%expName
command += " -p \"gpu IS NOT NULL\"" command += " -p \"gpu IS NOT NULL\""
command += " -l walltime=%d:00:00"%nbHours 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) os.system(command)
############################################################################### ###############################################################################
...@@ -75,8 +72,8 @@ def launchEvalBash(mode, expName) : ...@@ -75,8 +72,8 @@ def launchEvalBash(mode, expName) :
############################################################################### ###############################################################################
############################################################################### ###############################################################################
def launchEvalOar(mode, expName,nbHours) : def launchEvalOar(mode, expName, nbHours) :
bestEffort = getOarNbLongJobs() >= nbMaxLongJobs() bestEffort = getOarNbLongJobs() >= nbMaxLongJobs() and nbHours > 10
command = "oarsub" command = "oarsub"
command += " -t besteffort" if bestEffort else "" command += " -t besteffort" if bestEffort else ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment