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

launchBatches is now using repRange

parent ade63d52
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ def launchTrainOar(device, mode, expName, arguments, nbHours, seed) : ...@@ -56,7 +56,7 @@ def launchTrainOar(device, mode, expName, arguments, nbHours, seed) :
else : else :
command += " -p \"gpu IS NULL\"" command += " -p \"gpu IS NULL\""
command += " -l /core=4,walltime=%d:00:00"%nbHours command += " -l /core=4,walltime=%d:00:00"%nbHours
command += " \'" + "./train.sh %s bin/%s %s --silent --seed"%(mode,expName,arguments,seed) + "\'" command += " \'" + "./train.sh %s bin/%s %s --silent --seed %d"%(mode,expName,arguments,seed) + "\'"
subprocess.Popen(command, shell=True).wait() subprocess.Popen(command, shell=True).wait()
############################################################################### ###############################################################################
...@@ -231,6 +231,7 @@ def getOarNbFreeGpuPerNode() : ...@@ -231,6 +231,7 @@ def getOarNbFreeGpuPerNode() :
############################################################################### ###############################################################################
def getBestHostConstraint() : def getBestHostConstraint() :
return " and host!='lifnode1' and host!='sensei1'"
freeGpus = getOarNbFreeGpuPerNode() freeGpus = getOarNbFreeGpuPerNode()
if freeGpus["diflives1"] > 0 or freeGpus["lisnode2"] > 0 or freeGpus["lisnode3"] > 0 : if freeGpus["diflives1"] > 0 or freeGpus["lisnode2"] > 0 or freeGpus["lisnode3"] > 0 :
...@@ -265,7 +266,7 @@ if __name__ == "__main__" : ...@@ -265,7 +266,7 @@ if __name__ == "__main__" :
for lang in desc.langs : for lang in desc.langs :
for xp in desc.templatesExperiments : for xp in desc.templatesExperiments :
for i in range(desc.nbReplicas) : for i in desc.repRange :
xp['lang'] = lang xp['lang'] = lang
xp['expName'] = xp['expName'].split('.')[0]+"."+lang+"."+str(i) xp['expName'] = xp['expName'].split('.')[0]+"."+lang+"."+str(i)
if mode == "train" : if mode == "train" :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment