diff --git a/UD_any/launchBatches.py b/UD_any/launchBatches.py index 47f2f020289a62ac640eb6d0fbfe8b34b0064296..407efde90b54ee5bd29e06489462c187fc4ca108 100755 --- a/UD_any/launchBatches.py +++ b/UD_any/launchBatches.py @@ -56,7 +56,7 @@ def launchTrainOar(device, mode, expName, arguments, nbHours, seed) : else : command += " -p \"gpu IS NULL\"" 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() ############################################################################### @@ -231,6 +231,7 @@ def getOarNbFreeGpuPerNode() : ############################################################################### def getBestHostConstraint() : + return " and host!='lifnode1' and host!='sensei1'" freeGpus = getOarNbFreeGpuPerNode() if freeGpus["diflives1"] > 0 or freeGpus["lisnode2"] > 0 or freeGpus["lisnode3"] > 0 : @@ -265,7 +266,7 @@ if __name__ == "__main__" : for lang in desc.langs : for xp in desc.templatesExperiments : - for i in range(desc.nbReplicas) : + for i in desc.repRange : xp['lang'] = lang xp['expName'] = xp['expName'].split('.')[0]+"."+lang+"."+str(i) if mode == "train" :