Commit 737d2ae2 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

use dependencies for load leveler

parent 6f7a769e
Pipeline #22177 passed with stage
in 6 minutes and 25 seconds
......@@ -512,7 +512,9 @@ class _code(_base):
first_node_tasks = int(nb_mpi_processes - (nb_nodes-1)*nb_processes_per_node)
for job in range(njobs):
script_file.write('# @ step_name = {0}.$(stepid)\n'.format(self.simname))
script_file.write('# @ step_name = {0}.{1}\n'.format(self.simname, job))
if job > 0:
script_file.write('# @ dependency = {0}.{1} == 0\n'.format(self.simname, job - 1))
script_file.write('# @ resources = ConsumableCpus({})\n'.format(nb_threads_per_process))
script_file.write('# @ network.MPI = sn_all,not_shared,us\n')
script_file.write('# @ wall_clock_limit = {0}:{1:0>2d}:00\n'.format(hours, minutes))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment