netcdf-cxx4
netcdf-cxx4 copied to clipboard
4.3.x not including parallel I/O support
To report a non-security related issue, please provide:
- the version of the software with which you are encountering an issue: 4.3.0, 4.3.1
- environmental information (i.e. Operating System, compiler info, java version, python version, etc.): conda-forge builds on both linux and osx with both openmpi and mpich, see: https://github.com/conda-forge/netcdf-cxx4-feedstock/pull/27
- a description of the issue with the steps needed to reproduce it:
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.
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