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

Added jobid in stderr when launching job on cluster. Changed gpu partition to all in liscluster

parent eedd1e00
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,7 @@ cat $tmpFile >> $newErr
rm $tmpFile
>&2 echo "Job ID : " "$SLURM_ARRAY_JOB_ID"_"$SLURM_ARRAY_TASK_ID"
eval "${{commands[$SLURM_ARRAY_TASK_ID]}}"
""".format(len(names)-1, limit, jobName, nbCPU, nbHours, " ".join(names), " ".join(commands)), file=sFile)
sFile.close()
......@@ -99,6 +100,7 @@ cat $tmpFile >> $newErr
rm $tmpFile
>&2 echo "Job ID : " "$SLURM_ARRAY_JOB_ID"_"$SLURM_ARRAY_TASK_ID"
eval "${{commands[$SLURM_ARRAY_TASK_ID]}}"
""".format(len(names)-1, limit, jobName, "qos_gpu-t4" if int(nbHours) > 20 else "qos_gpu-t3", nbHours, " ".join(names), " ".join(commands)), file=sFile)
sFile.close()
......@@ -140,8 +142,9 @@ cat $tmpFile >> $newErr
rm $tmpFile
>&2 echo "Job ID : " "$SLURM_ARRAY_JOB_ID"_"$SLURM_ARRAY_TASK_ID"
eval "${{commands[$SLURM_ARRAY_TASK_ID]}}"
'''.format(len(names)-1, limit, jobName, nbCPU, "cpu" if device == "cpu" else "gpu\n#SBATCH --gres=gpu", nbHours, " ".join(names), commandList), file=sFile)
'''.format(len(names)-1, limit, jobName, nbCPU, "cpu" if device == "cpu" else "all\n#SBATCH --gres=gpu", nbHours, " ".join(names), commandList), file=sFile)
sFile.close()
else :
print("ERROR : Unknown hostname \'%s\'"%hostname)
......
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