Skip to content

Commit

Permalink
Use -n flag common to both mpiexec and srun
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrack committed Nov 3, 2021
1 parent d6bc557 commit eb7a397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/regtesting/do_regtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def launch_exe(
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(
Expand Down

0 comments on commit eb7a397

Please sign in to comment.