Use execvpe instead of execve in omnitrace-sample (#187)

* Use execvpe instead of execve in omnitrace-sample

- previous implementation preferred exe in PATH over exe in PWD
- 'p' variants of exec duplicate the actions of the shell in searching for an executable file if the specified filename does not contain a slash character

* OpenMPI oversubscribe arg in testing
Šī revīzija ir iekļauta:
Jonathan R. Madsen
2022-10-27 15:15:50 -05:00
revīziju iesūtīja GitHub
vecāks a41a5c155e
revīzija 139070a2de
5 mainīti faili ar 11 papildinājumiem un 12 dzēšanām
+9
Parādīt failu
@@ -154,6 +154,15 @@ if(OMNITRACE_CI_MPI_RUN_AS_ROOT)
endif()
endif()
execute_process(
COMMAND ${MPIEXEC_EXECUTABLE} --oversubscribe -n 1 ls
RESULT_VARIABLE _mpiexec_oversubscribe
OUTPUT_QUIET ERROR_QUIET)
if(_mpiexec_oversubscribe EQUAL 0)
list(APPEND MPIEXEC_EXECUTABLE_ARGS --oversubscribe)
endif()
# -------------------------------------------------------------------------------------- #
set(_VALID_GPU OFF)