Skip to content

Commit adb16b2

Browse files
committed
Update fpm_meta_mpi.f90
1 parent 64dd141 commit adb16b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/metapackage/fpm_meta_mpi.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,9 +1112,7 @@ 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-
! 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
1115+
if (stat/=0 .or. .not.success) then
11181116
call syntax_error(error, &
11191117
'cannot retrieve MPICH library version from <mpichversion, '//wrapper%s//', mpiexec>')
11201118
return
@@ -1126,7 +1124,9 @@ type(string_t) function mpi_wrapper_query(mpilib,wrapper,command,verbose,error)
11261124
call run_wrapper(wrapper,[string_t('-v')],verbose=verbose, &
11271125
exitcode=stat,cmd_success=success,screen_output=screen)
11281126

1129-
if (stat/=0 .or. .not.success) then
1127+
! LLVM wrappers bug: non-zero exit code when checking for "-v" -> only check for
1128+
! successful command: https://github.com/spack/spack/issues/47672
1129+
if (.not.success) then
11301130
call syntax_error(error,'local INTEL MPI library does not support -v')
11311131
return
11321132
else

0 commit comments

Comments
 (0)