Skip to content

Commit

Permalink
refined amudprun support in the test code and in the hpxrun launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-clmsn committed Nov 30, 2023
1 parent 3492614 commit 8877fed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmake/HPX_AddTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function(add_hpx_test category name)
if(_add_test)
set(_full_name "${category}.distributed.gasnet.${name}")
add_test(NAME "${_full_name}" COMMAND ${cmd} "-p" "gasnet" "-r"
"gasnet" ${args}
"amudprun" ${args}
)
set_tests_properties(
"${_full_name}"
Expand Down
9 changes: 4 additions & 5 deletions cmake/templates/hpxrun.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,8 @@ def run_jsrun(cmd, localities, verbose):
def run(cmd, runwrapper, localities, nodes, verbose):
if runwrapper == 'none':
run_none(cmd, localities, nodes, verbose)
if runwrapper == 'gasnet':
#run_amudprun(cmd, localities, nodes, verbose)
run_srun(cmd, localities, verbose)
if runwrapper == 'amudprun':
run_amudprun(cmd, localities, nodes, verbose)
if runwrapper == 'mpi':
assert nodes is None, "nodes option only valid with tcp parcelport."
run_mpi(cmd, localities, verbose)
Expand Down Expand Up @@ -299,7 +298,7 @@ def check_options(parser, options, args):
sys.exit(1)

check_valid_runwrapper = (lambda x:
x == 'none' or x == 'mpi' or x == 'srun' or x =='jsrun' or x == 'gasnet');
x == 'none' or x == 'mpi' or x == 'srun' or x =='jsrun' or x == 'amudprun');
if not check_valid_runwrapper(options.runwrapper):
print('Error: Runwrapper option not valid\n', sys.stderr)
parser.print_help()
Expand Down Expand Up @@ -384,7 +383,7 @@ Used by the tcp parcelport only.
parser.add_option('-r', '--runwrapper'
, action='store', type='string'
, dest='runwrapper', default=default_env('HPXRUN_RUNWRAPPER', 'none')
, help='Which runwrapper to use (Options are: none, mpi, gasnet, srun, jsrun) '
, help='Which runwrapper to use (Options are: none, mpi, amudprun, srun, jsrun) '
'(environment variable HPXRUN_RUNWRAPPER)')

parser.add_option('-e', '--expected'
Expand Down

0 comments on commit 8877fed

Please sign in to comment.