Problem building PNetCDF 1.12.0 with GCC 7.4.0 and OpenMPI-4.0.2

Carl Ponder cponder at nvidia.com
Sun Oct 20 20:37:56 CDT 2019


*On 10/20/19 7:36 PM, Wei-keng Liao wrote:*
>
>     Since you mentioned you have checked file src/include/config.h,
>     could you please let me know whether this line below appears there?
>
>     #define HAVE_DECL_MPI_COMBINER_HVECTOR_INTEGER 0
>
>     This line shows that PnetCDF configure.ac does check whether the
>     deprecated MPI constant MPI_COMBINER_HVECTOR_INTEGER is still
>     defined in mpi.h. Therefore, that compile error from line 390 of
>     file dtype_decode.c should not happen.
>
>     389 #if defined HAVE_DECL_MPI_COMBINER_HVECTOR_INTEGER && HAVE_DECL_MPI_COMBINER_HVECTOR_INTEGER
>     390         case MPI_COMBINER_HVECTOR_INTEGER:
>     391 #endif
>
These builds of 1.12.0 have the setting 1

    PGI-19.9_OpenMPI-4.0.1.LLVM/distro/src/include/config.h:#define
    HAVE_DECL_MPI_COMBINER_HVECTOR_INTEGER 1
    PGI-19.9_OpenMPI-4.0.1/distro/src/include/config.h:#define
    HAVE_DECL_MPI_COMBINER_HVECTOR_INTEGER 1

and these have the setting 0

    PGI-19.9_OpenMPI-4.0.2.LLVM/distro/src/include/config.h:#define
    HAVE_DECL_MPI_COMBINER_HVECTOR_INTEGER 0
    PGI-19.9_OpenMPI-4.0.2/distro/src/include/config.h:#define
    HAVE_DECL_MPI_COMBINER_HVECTOR_INTEGER 0

So going from OpenMPI 4.0.1 -> 4.0.2 caused the change.
In this case

    GCC-7.4.0_OpenMPI-4.0.2/distro/src/include/config.h:#define
    HAVE_DECL_MPI_COMBINER_HVECTOR_INTEGER 1

I had build GCC with the flag suggested by Nick Papior

    --enable-mpi1-compatibility

and the problem went away for my builds of both PNetCDF & Valgrind.
Somehow this had been a problem building with GCC but not PGI.

         -- Carl


-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20191020/b6796aa2/attachment.html>


More information about the parallel-netcdf mailing list