Skip to content

Commit 5b4ee66

Browse files
committed
Fix inconsistent configure-time Fortran TKR check
This fixes the inconsistency between what is tested at the configure time (the unnamed Fortran interface) and what is actually used in the source code (the named Fortran interface). As was mentioned in #9445, the unnamed interfaces are more forgiving when it comes to TKR mismatches. Therefore, the current configure-time check is not strict enough and is prone to giving false results (e.g. for NVHPC 23.3+). The fix is to switch to the named Fortran interface in the configure script. Note that the inconsistency was resolved in the main branch with #9445, which we cannot cherry-pick because it potentially breaks the ABI compatibility. Signed-off-by: Sergey Kosukhin <[email protected]>
1 parent 31dd49a commit 5b4ee66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/ompi_fortran_check_ignore_tkr.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ AC_DEFUN([OMPI_FORTRAN_CHECK_IGNORE_TKR_SUB], [
141141
end subroutine force_assumed_shape
142142
end interface
143143

144-
interface
144+
interface foo
145145
subroutine foo(buffer, count)
146146
$1 buffer
147147
$2, intent(in) :: buffer

0 commit comments

Comments
 (0)