Skip to content

Commit

Permalink
fixing unindent issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-clmsn committed Dec 5, 2023
1 parent 8986572 commit f839e55
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions cmake/templates/hpxrun.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -179,20 +179,6 @@ def run_none(cmd, localities, nodes, verbose):
print('Executing command: ' + ' '.join(cmd))
subproc(cmd)


def run_amudprun(cmd, localities, nodes, verbose):
assert len(nodes) == localities, "Number of localities must match number of nodes."
os.environ['GASNET_SPAWNFN'] = 'S'
os.environ['GASNET_SSH_SERVERS'] = ' '.join([ str(node) for node in nodes ])
os.environ['SSH_SERVERS'] = os.environ['GASNET_SSH_SERVERS']
os.environ['GASNET_ROUTE_OUTPUT'] = '0'

exec_cmd = ['amudprun', '-np', len(nodes), cmd]

if verbose:
print('Executing command: ' + ' '.join(exec_cmd))
subproc(exec_cmd)

# Run with mpiexec
# This is executing mpiexec with the "-np" option set to the number of localities
def run_mpi(cmd, localities, verbose):
Expand All @@ -209,6 +195,19 @@ def run_mpi(cmd, localities, verbose):
print('Executing command: ' + ' '.join(exec_cmd))
subproc(exec_cmd)

def run_amudprun(cmd, localities, nodes, verbose):
assert len(nodes) == localities, "Number of localities must match number of nodes."
os.environ['GASNET_SPAWNFN'] = 'S'
os.environ['GASNET_SSH_SERVERS'] = ' '.join([ str(node) for node in nodes ])
os.environ['SSH_SERVERS'] = os.environ['GASNET_SSH_SERVERS']
os.environ['GASNET_ROUTE_OUTPUT'] = '0'

exec_cmd = ['amudprun', '-np', len(nodes), cmd]

if verbose:
print('Executing command: ' + ' '.join(exec_cmd))
subproc(exec_cmd)

# Run with oshrun
# This is executing amudprun with the "-np" option set to the number of localities
def run_oshrun(cmd, localities, verbose):
Expand Down

0 comments on commit f839e55

Please sign in to comment.