Skip to content

Commit

Permalink
Update bench_mpi for Debian 11
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed May 17, 2024
1 parent 5c801b9 commit 199df04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions .hgignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ site.cfg
*.lock
*.dirlock
**/tmp*
**/venv_*

fluidsim_path
scratch
Expand Down
17 changes: 8 additions & 9 deletions bench/bench_mpi/submit_legi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,22 @@
cluster.commands_setting_env = [
"source /etc/profile",
"export MPI4PY_RC_THREAD_LEVEL=serialized",
"module purge",
]

if infiniband:
name_venv = "mpi_ib"
name_venv = "venv_mpi_ib"
else:
name_venv = "mpi_noib"
name_venv = "venv_mpi_noib"

name_run = "bench_py_" + name_venv

cluster.commands_setting_env.append(
f"source /home/users/augier3pi/envs/{name_venv}/bin/activate"
)
cluster.commands_setting_env.append(f"source {name_venv}/bin/activate")

if infiniband:
cluster.commands_setting_env.append("module load openmpi/4.0.5-ib")

resource_conditions = "net='ib' and os='buster'"
cluster.commands_setting_env.append(
"module load env/ib4openmpi # export OMPI_MCA_pml=ucx",
)

nb_nodes = 2

Expand All @@ -44,5 +43,5 @@
omp_num_threads=1,
walltime="0:10:00",
ask=False,
resource_conditions=resource_conditions,
resource_conditions="net='ib' and os='bullseye'",
)

0 comments on commit 199df04

Please sign in to comment.