Skip to content

Commit

Permalink
remove newline characters
Browse files Browse the repository at this point in the history
  • Loading branch information
perazz committed Dec 13, 2023
1 parent d6db099 commit 758229e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/fpm_meta.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ subroutine mpi_compiler_match(language,wrappers,compiler,which_one,mpilib,error)

! Because the intel mpi library does not support llvm_ compiler wrappers yet,
! we must check for that manually
if (mpi_compiler%is_intel() .and. compiler%is_intel()) then
if (same_vendor==0 .and. mpi_compiler%is_intel() .and. compiler%is_intel()) then
same_vendor = i
vendor_mpilib = mpilib
end if
Expand All @@ -1115,7 +1115,7 @@ subroutine mpi_compiler_match(language,wrappers,compiler,which_one,mpilib,error)

! Because the intel mpi library does not support llvm_ compiler wrappers yet,
! we must check for that manually
if (screen%s=='icc' .and. compiler%cc=='icx') then
if (same_vendor==0 .and. screen%s=='icc' .and. compiler%cc=='icx') then
same_vendor = i
vendor_mpilib = mpilib
end if
Expand All @@ -1128,7 +1128,7 @@ subroutine mpi_compiler_match(language,wrappers,compiler,which_one,mpilib,error)

! Because the intel mpi library does not support llvm_ compiler wrappers yet,
! we must check for that manually
if (screen%s=='icpc' .and. compiler%cc=='icpx') then
if (same_vendor==0 .and. screen%s=='icpc' .and. compiler%cc=='icpx') then
same_vendor = i
vendor_mpilib = mpilib
end if
Expand Down Expand Up @@ -1442,6 +1442,7 @@ type(string_t) function mpi_wrapper_query(mpilib,wrapper,command,verbose,error)
end if

! Take out the first command from the whole line
call remove_newline_characters(screen)
call split(screen%s,tokens,delimiters=' ')
screen%s = trim(adjustl(tokens(1)))

Expand Down

0 comments on commit 758229e

Please sign in to comment.