Skip to content

Commit 194d8a5

Browse files
committed
configury: harden IGNORE_TKR check
NVIDIA HPC Compiler (e.g. nvfortran) incorrectly selected the GCC style pragmas to support IGNORE_TKR. Harden the test by mimicking exactly the mpi f08 bindings in order to fix that false positive. Thanks Chris Parrot for the report. Refs. #11582 Signed-off-by: Gilles Gouaillardet <[email protected]> bot:notacherrypick (back-ported from commit 600df6a)
1 parent 184c32a commit 194d8a5

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

config/ompi_fortran_check_ignore_tkr.m4

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,23 @@ AC_DEFUN([OMPI_FORTRAN_CHECK_IGNORE_TKR_SUB], [
189189
call foo(a, count)
190190
end subroutine force_assumed_shape
191191

192+
module check_ignore_tkr
193+
interface foobar
194+
subroutine foobar_x(buffer, count)
195+
$1 buffer
196+
$2, intent(in) :: buffer
197+
integer, intent(in) :: count
198+
end subroutine foobar_x
199+
end interface
200+
end module
201+
202+
subroutine bar(var)
203+
use check_ignore_tkr
204+
implicit none
205+
real, intent(inout) :: var(:, :, :)
206+
207+
call foobar(var(1,1,1), 1)
192208
! Autoconf puts "end" after the last line
193-
subroutine bogus
194209
]]),
195210
[msg=yes
196211
ompi_fortran_ignore_tkr_predecl="$1"

0 commit comments

Comments
 (0)