Skip to content
Snippets Groups Projects
Commit b998d2ec authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

add energy policy tag

parent 3a772ba4
No related branches found
No related tags found
1 merge request!23WIP: Feature/use cmake
Pipeline #37806 canceled
......@@ -423,6 +423,8 @@ class _code(_base):
nb_processes_per_node = int(nb_cpus_per_node // nb_threads_per_process)
first_node_tasks = int(nb_mpi_processes - (nb_nodes-1)*nb_processes_per_node)
script_file.write('# @ energy_policy_tag = {0}\n'.format(self.simname))
script_file.write('# @ minimize_time_to_solution = yes\n')
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))
......@@ -528,6 +530,8 @@ class _code(_base):
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))
script_file.write('# @ energy_policy_tag = {0}\n'.format(self.simname))
script_file.write('# @ minimize_time_to_solution = yes\n')
assert type(self.host_info['environment']) != type(None)
script_file.write('# @ node = {0}\n'.format(nb_nodes))
script_file.write('# @ tasks_per_node = {0}\n'.format(nb_processes_per_node))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment