Skip to content
Snippets Groups Projects
Unverified Commit 132e3a23 authored by Lars Bilke's avatar Lars Bilke
Browse files

Fix infiniband warning when running on one node.

parent dc35650c
No related branches found
No related tags found
No related merge requests found
...@@ -69,6 +69,9 @@ def launch_batch_job( ...@@ -69,6 +69,9 @@ def launch_batch_job(
num_machines = math.ceil( num_machines = math.ceil(
job_settings.ntasks / computer.get_default_mpiprocs_per_machine() job_settings.ntasks / computer.get_default_mpiprocs_per_machine()
) )
if num_machines == 1:
# Disable infiniband to get reduce warnings "... error initializing an OpenFabrics device"
prepend_text += "export OMPI_MCA_btl=^openib\n"
# "max_memory_kb": 1024, # sets --mem which is not supported by EVE # "max_memory_kb": 1024, # sets --mem which is not supported by EVE
# "custom_scheduler_commands": "--mem-per-cpu=1G", # does not work # "custom_scheduler_commands": "--mem-per-cpu=1G", # does not work
options_dict.update({"custom_scheduler_commands": f"#SBATCH --mem-per-cpu={job_settings.mem_per_cpu}"}) options_dict.update({"custom_scheduler_commands": f"#SBATCH --mem-per-cpu={job_settings.mem_per_cpu}"})
......
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