Unidata / netcdf-cxx4

Official GitHub repository for netCDF-C++ libraries and utilities.
Other
124 stars 49 forks source link

4.3.x not including parallel I/O support #80

Open xylar opened 4 years ago

xylar commented 4 years ago

To report a non-security related issue, please provide:

netcdf-c has been build with parallel support using cmake flags:

-DENABLE_PARALLEL4=ON -DENABLE_PARALLEL_TESTS=ON

see: https://github.com/conda-forge/libnetcdf-feedstock/blob/master/recipe/build.sh#L4

A test install of libnetcdf with mpich indicates that a parallel build was indeed made, e.g. include/netcdf_par.h exists.

$ nc-config --all

This netCDF 4.7.1 has been built with the following features: 

  --cc            -> /home/xylar/miniconda3/envs/test/bin/mpicc
  --cflags        -> -I/home/xylar/miniconda3/envs/test/include
  --libs          -> -L/home/xylar/miniconda3/envs/test/lib -lnetcdf
  --static        -> -lmfhdf -ldf -lhdf5_hl -lhdf5 -lrt -lpthread -lz -ldl -lm -lcurl

  --has-c++       -> no
  --cxx           -> 

  --has-c++4      -> no
  --cxx4          -> 

  --has-fortran   -> no
  --has-dap       -> yes
  --has-dap2      -> yes
  --has-dap4      -> yes
  --has-nc2       -> yes
  --has-nc4       -> yes
  --has-hdf5      -> yes
  --has-hdf4      -> yes
  --has-logging   -> no
  --has-pnetcdf   -> no
  --has-szlib     -> no
  --has-cdf5      -> yes
  --has-parallel4 -> yes
  --has-parallel  -> yes

  --prefix        -> /home/xylar/miniconda3/envs/test
  --includedir    -> /home/xylar/miniconda3/envs/test/include
  --libdir        -> /home/xylar/miniconda3/envs/test/lib
  --version       -> netCDF 4.7.1

However, when I try to build netcdf-cxx4 with cmake and linking in the parallel version of libnetcdf, I always see:

-- Looking for nc_use_parallel_enabled in netcdf
-- Looking for nc_use_parallel_enabled in netcdf - not found

Again, see: https://github.com/conda-forge/netcdf-cxx4-feedstock/pull/27

There's not a clear indication that any attempt is being made to build with parallel I/O.

Are there flags I can pass to cmake to tell it that I want a parallel build? I searched the documentation but didn't see anything obvious.

KBentley57 commented 4 years ago

Like @xylar, I'm trying to build 4.3.1 with parallel I/O

I'm not seeing any indication that parallel I/O is supported, even though the build is successful. Any comments as to how I should proceed? I'm following this page with the instructions on building, but I'm not having any luck.

Thanks,

Kyle