From f6a12517cfd61663d666d188adb279cdf11287dd Mon Sep 17 00:00:00 2001 From: lukemartinlogan Date: Mon, 16 Oct 2023 19:08:33 -0500 Subject: [PATCH] Use mpiexec --- jarvis_util/shell/mpi_exec.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jarvis_util/shell/mpi_exec.py b/jarvis_util/shell/mpi_exec.py index 2a4923d..8fc8e1e 100644 --- a/jarvis_util/shell/mpi_exec.py +++ b/jarvis_util/shell/mpi_exec.py @@ -17,7 +17,7 @@ class MpiVersion(LocalExec): """ def __init__(self, exec_info): - self.cmd = 'mpirun --version' + self.cmd = 'mpiexec --version' super().__init__(self.cmd, exec_info.mod(env=exec_info.basic_env, collect_output=True, @@ -60,7 +60,7 @@ def __init__(self, cmd, exec_info): exec_info.mod(env=exec_info.basic_env)) def mpicmd(self): - params = [f'mpirun -n {self.nprocs}'] + params = [f'mpiexec -n {self.nprocs}'] params.append('--oversubscribe') if self.ppn is not None: params.append(f'-ppn {self.ppn}') @@ -102,7 +102,7 @@ def __init__(self, cmd, exec_info): exec_info.mod(env=exec_info.basic_env)) def mpicmd(self): - params = [f'mpirun -n {self.nprocs}'] + params = [f'mpiexec -n {self.nprocs}'] if self.ppn is not None: params.append(f'-ppn {self.ppn}') if len(self.hostfile): @@ -142,7 +142,7 @@ def __init__(self, cmd, exec_info): exec_info.mod(env=exec_info.basic_env)) def mpicmd(self): - params = [f'mpirun -n {self.nprocs}'] + params = [f'mpiexec -n {self.nprocs}'] if self.ppn is not None: params.append(f'-ppn {self.ppn}') if len(self.hostfile):