Skip to content

Commit

Permalink
Use mpiexec
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemartinlogan committed Oct 17, 2023
1 parent 1a43554 commit f6a1251
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jarvis_util/shell/mpi_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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}')
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit f6a1251

Please sign in to comment.