Skip to content
Snippets Groups Projects
Commit 1dbd1895 authored by Kurt A. O'Hearn's avatar Kurt A. O'Hearn
Browse files

Tools: add support for jobs using LSF (on OLCF at ONL).

parent 1b639864
No related branches found
No related tags found
No related merge requests found
......@@ -267,6 +267,28 @@ restart_freq 0 ! 0: do not output any restart f
self.__ffield_file,
control_file,
]
elif mpi_cmd[0] == 'jsrun':
# LSF scheduler wraps MPI commands (e.g., OLCF at ONL)
cmd_args = [
'jsrun',
'--nrs',
# number of resource sets
mpi_cmd[1],
'--tasks_per_rs',
# number of MPI tasks (ranks) per resource set
mpi_cmd[2],
# number of CPUs per resource set per node
'--cpu_per_rs',
mpi_cmd[3],
# number of GPUs per resource set per task
'--gpu_per_rs',
mpi_cmd[4],
] + mpi_cmd_extra[0].split() + [
] + binary.split() + [
self.__geo_file,
self.__ffield_file,
control_file,
]
else:
print("[ERROR] Invalid MPI application type ({0}). Terminating...".format(mpi_cmd[0]))
exit(-1)
......
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