Hi Franck,

I suspect it has something to do with your system or your installation. I was finally able to build the cmake dummy package and the CMakeCache contains the HDF5_IS_PARALLEL correctly!

Here are my module files again:
# cmake/3.3.0
set soft_path /sw/apps/$soft_ware/$soft_version
set soft_arch x86_64
module-whatis   "${soft_ware} ${soft_version}"


prepend-path PATH $soft_path/bin
prepend-path LD_LIBRARY_PATH $soft_path/lib
prepend-path CMAKE_PREFIX_PATH $soft_path/share/cmake-3.3

# hdf5/1.8.15-p1-openmpi
set path /sw/users/steinbac/software/$soft_ware/${soft_version}
set soft_arch x86_64
module-whatis   "${soft_ware} ${soft_version}"

append soft_dependencies "openmpi/1.8.5"

prepend-path PATH $path/bin
prepend-path LD_LIBRARY_PATH $path/lib

I however have to say, that the FindHDF5 cmake module seems not to like the situation if your environment exposes multiple cmake installations, e.g.

LD_LIBRARY_PATH=/path/to/custom/hdf5:/usr/lib
^^^^^^^^ might also contain hdf5 libraries. The same holds for the PATH.

Best,
Peter


On 08/03/2015 02:19 PM, houssen wrote:
Hello,

I built HDF5 from source with CMake. I need parallel HDF5 so I set
HDF5_ENABLE_PARALLEL=ON in ccmake : libhdf5.settings shows "Parallel
HDF5: ON". So this is OK.

Now with this CMakeLists.txt:
~> more CMakeLists.txt
CMAKE_MINIMUM_REQUIRED ( VERSION 2.8 )
FIND_PACKAGE ( HDF5 1.8 REQUIRED C )

I do not get HDF5_IS_PARALLEL :
~> cmake .
-- Configuring done
-- Generating done
-- Build files have been written to: /home/houssen/Downloads
~> cmake -LA | grep HDF
HDF5_CXX_COMPILER_EXECUTABLE:FILEPATH=/usr/bin/h5c++
HDF5_C_COMPILER_EXECUTABLE:FILEPATH=/usr/bin/h5cc
HDF5_C_LIBRARY:PATH=/home/houssen/Programs/PHDF5/hdf5-1.8.15-patch1/local/lib/libhdf5.a

HDF5_DIFF_EXECUTABLE:FILEPATH=/home/houssen/Programs/PHDF5/hdf5-1.8.15-patch1/local/bin/h5diff

HDF5_DIR:PATH=/home/houssen/Programs/PHDF5/hdf5-1.8.15-patch1/local/share/cmake

HDF5_Fortran_COMPILER_EXECUTABLE:FILEPATH=/usr/bin/h5fc

Why HDF5_IS_PARALLEL is not available?

Franck


_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to