From 600df6aa57a473f17041e34a0a583db4acefe213 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Mon, 15 Jul 2024 13:08:43 +0900 Subject: [PATCH] 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. open-mpi/ompi#11582 Signed-off-by: Gilles Gouaillardet --- config/ompi_fortran_check_ignore_tkr.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/ompi_fortran_check_ignore_tkr.m4 b/config/ompi_fortran_check_ignore_tkr.m4 index 3686bca82e8..ac23f42b913 100644 --- a/config/ompi_fortran_check_ignore_tkr.m4 +++ b/config/ompi_fortran_check_ignore_tkr.m4 @@ -200,12 +200,12 @@ AC_DEFUN([OMPI_FORTRAN_CHECK_IGNORE_TKR_SUB], [ end subroutine force_assumed_shape module check_ignore_tkr - interface - subroutine foobar(buffer, count) + interface foobar + subroutine foobar_x(buffer, count) $1 buffer $2, intent(in) :: buffer integer, intent(in) :: count - end subroutine foobar + end subroutine foobar_x end interface end module