While working on https://github.com/open-mpi/ompi/pull/9738, I discovered an unexpected behavior in the OSHMEM Fortran interface. The C interface will build if oshmem is enabled (either through autodetection or explicitly adding --enable-oshmem. However, the Fortran interface only builds if --enable-oshmem is explicitly added to the configure command line. The offending code is the AM conditional check:
AM_CONDITIONAL(OSHMEM_BUILD_FORTRAN_BINDINGS,
[test "$enable_oshmem" = "yes" && \
test "$ompi_fortran_happy" = "1" && \
test "$OMPI_TRY_FORTRAN_BINDINGS" -gt "$OMPI_FORTRAN_NO_BINDINGS" && \
test "$enable_oshmem_fortran" != "no"])
enable_oshmem will not be yes unless the user explicitly requested oshmem.
While working on https://github.com/open-mpi/ompi/pull/9738, I discovered an unexpected behavior in the OSHMEM Fortran interface. The C interface will build if oshmem is enabled (either through autodetection or explicitly adding
--enable-oshmem
. However, the Fortran interface only builds if--enable-oshmem
is explicitly added to the configure command line. The offending code is the AM conditional check:enable_oshmem
will not beyes
unless the user explicitly requested oshmem.