This commit is contained in:
Fabien Servant 2020-11-06 18:53:31 +01:00
parent d0fe3f4318
commit f6f9bcac38

View file

@ -39,7 +39,6 @@ class SlurmSubmitter(BaseSubmitter):
print(node.name)
command = [
"sbatch",
"--parsable",
@ -52,6 +51,10 @@ class SlurmSubmitter(BaseSubmitter):
dependenciesString = "%s:%d" % (dependenciesString, dependency.pid)
command.append(dependenciesString)
if node.nodeDesc.gpu.name != "NONE":
command.append("--partition=gpu")
command.append("--gres=gpu:1")
countCores=24
if node.isParallelized:
blockSize, fullSize, nbBlocks = node.nodeDesc.parallelization.getSizes(node)