Skip to content

Commit d7c93c6

Browse files
committed
Intel LLVM mpi wrapper: do not check for exit code
1 parent 365b9b2 commit d7c93c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/metapackage/fpm_meta_mpi.f90

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,15 +1112,17 @@ type(string_t) function mpi_wrapper_query(mpilib,wrapper,command,verbose,error)
11121112
exitcode=stat,cmd_success=success,screen_output=screen)
11131113
endif
11141114

1115-
if (stat/=0 .or. .not.success) then
1115+
! LLVM wrappers bug: non-zero exit code when checking for "-v" -> only check for
1116+
! successful command: https://github.com/spack/spack/issues/47672
1117+
if (success) then
11161118
call syntax_error(error, &
11171119
'cannot retrieve MPICH library version from <mpichversion, '//wrapper%s//', mpiexec>')
11181120
return
11191121
end if
11201122

11211123
case (MPI_TYPE_INTEL)
11221124

1123-
! --showme:command returns the build command of this wrapper
1125+
! -v returns the build command of this wrapper
11241126
call run_wrapper(wrapper,[string_t('-v')],verbose=verbose, &
11251127
exitcode=stat,cmd_success=success,screen_output=screen)
11261128

0 commit comments

Comments
 (0)