Skip to content

Commit

Permalink
Merge pull request #1462 from eisenhauer/SwitchMPIEXECVar
Browse files Browse the repository at this point in the history
Switch to using MPIEXEC_EXECUTABLE rather than MPIEXEC in staging-common
  • Loading branch information
eisenhauer authored May 29, 2019
2 parents eafc774 + fdac17f commit 70d712c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion testing/adios2/engine/staging-common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ include (TestSupp.cmake )

if (ADIOS2_HAVE_MPI)
# we want to know if mpiexec is a shell script or a binary executable
file(READ ${MPIEXEC} MPIFILEDATA LIMIT 1024 HEX)
file(READ ${MPIEXEC_EXECUTABLE} MPIFILEDATA LIMIT 1024 HEX)
string(LENGTH ${MPIFILEDATA} DATALENGTH)
math(EXPR last_hex_index "(${DATALENGTH} / 2) - 1")
foreach(hex_index RANGE ${last_hex_index})
Expand Down
6 changes: 3 additions & 3 deletions testing/adios2/engine/staging-common/run_test.in
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ else :
if args.reader is None:
args.reader = 'TestCommonClient'

writer_exec_cmd = '@MPIEXEC@ @MPIEXEC_NUMPROC_FLAG@ ' + str(args.num_writers);
reader_exec_cmd = '@MPIEXEC@ @MPIEXEC_NUMPROC_FLAG@ ' + str(args.num_readers);
writer_exec_cmd = '@MPIEXEC_EXECUTABLE@ @MPIEXEC_NUMPROC_FLAG@ ' + str(args.num_writers);
reader_exec_cmd = '@MPIEXEC_EXECUTABLE@ @MPIEXEC_NUMPROC_FLAG@ ' + str(args.num_readers);

if ("@MPIEXEC@" == "") or ("@MPIEXEC@" == "MPIEXEC_EXECUTABLE-NOTFOUND"):
if ("@MPIEXEC_EXECUTABLE@" == "") or ("@MPIEXEC_EXECUTABLE@" == "MPIEXEC_EXECUTABLE-NOTFOUND"):
# NO MPI
writer_exec_cmd = '';
reader_exec_cmd = '';
Expand Down

0 comments on commit 70d712c

Please sign in to comment.