From eb7a39737e91f2e27e199ee99635c151eb6ef112 Mon Sep 17 00:00:00 2001 From: Matthias Krack Date: Wed, 3 Nov 2021 10:10:38 +0100 Subject: [PATCH] Use -n flag common to both mpiexec and srun --- tools/regtesting/do_regtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/regtesting/do_regtest.py b/tools/regtesting/do_regtest.py index a99bf35abd..dbe9bbbf9d 100755 --- a/tools/regtesting/do_regtest.py +++ b/tools/regtesting/do_regtest.py @@ -230,7 +230,7 @@ class Config: env["HIP_VISIBLE_DEVICES"] = ",".join(visible_gpu_devices) env["OMP_NUM_THREADS"] = str(self.ompthreads) exe = str(self.cp2k_root / "exe" / self.arch / f"{exe_stem}.{self.version}") - cmd = self.mpiexec + ["-np", str(self.mpiranks), exe] if self.use_mpi else [exe] + cmd = self.mpiexec + ["-n", str(self.mpiranks), exe] if self.use_mpi else [exe] if self.debug: print(f"Creating subprocess: {cmd} {args}") return asyncio.create_subprocess_exec(