Allow usage of wrapper script when running regression tests with MPI

This commit is contained in:
Rocco Meli 2023-10-26 17:24:09 +02:00 committed by GitHub
parent b3b72e1c52
commit 61cc8baa64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -298,7 +298,7 @@ class Config:
if self.valgrind:
cmd = ["valgrind", "--error-exitcode=42", "--exit-on-first-error=yes"] + cmd
if self.use_mpi:
cmd = self.mpiexec + ["-n", str(self.mpiranks)] + cmd
cmd = [self.mpiexec[0], "-n", str(self.mpiranks)] + self.mpiexec[1:] + cmd
if self.debug:
print(f"Creating subprocess: {cmd} {args}")
return asyncio.create_subprocess_exec(