Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xylar opened this issue Nov 24, 2019 · 1 comment
Open

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

xylar opened this issue Nov 24, 2019 · 1 comment

Comments

@xylar
Copy link

xylar commented Nov 24, 2019

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:
    netcdf-cxx4 v4.3.1 conda-forge/netcdf-cxx4-feedstock#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: conda-forge/netcdf-cxx4-feedstock#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.

@xylar xylar changed the title 4.3.x failing to build with parallel I/O 4.3.x not including parallel I/O support Nov 24, 2019
@KBentley57
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants