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) :
###############################################################################
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 ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment