Notes |
|
(0038578)
|
Brad King
|
2015-04-22 09:37
|
|
|
|
(0039257)
|
Pierre de Buyl
|
2015-08-09 17:43
|
|
Can you try with
-DHDF5_Fortran_COMPILER_EXECUTABLE=h5pfc
added to your cmake invocation, after removing the CMakeFiles from your build dir? On debian I could make it pick the parallel install. |
|
|
(0039271)
|
Nico Schlömer
|
2015-08-12 12:51
|
|
@Pierre Nope, I'm just getting
```
-- Unable to determine HDF5 Fortran flags from HDF5 wrapper.
```
then (and it CMake finds the serial HDF5). |
|
|
(0039272)
|
Pierre de Buyl
|
2015-08-12 13:30
|
|
For further tracking it would be good to have cmake version, hdf5 version, etc.
The FindHDF5 file issues the message you see when the exit status of "h5pfc -show" is not 0.
Can you compile and execute properly a parallel HDF5 Fortran program?
What is the output of "h5pfc -show"? |
|
|
(0039275)
|
Nico Schlömer
|
2015-08-12 14:34
|
|
I was able to find the correct libraries by explicitly setting the HDF5 paths
```
-DHDF5_INCLUDE_DIRS:PATH=/usr/include/hdf5/openmpi/ \
-DHDF5_LIBRARY_DIRS:PATH=/usr/lib/x86_64-linux-gnu/hdf5/openmpi/ \
```
I guess we could consider this bug invalid then. |
|
|
(0039356)
|
Paul Romano
|
2015-08-30 21:01
|
|
I can confirm that it if both h5cc and h5pcc (or h5fc/h5pfc) are on a user's PATH, FindHDF5.cmake will consistently pick the serial installation and thus there is no way to get it to find the parallel version. This seems to be because a single call to find_program(...) searches for both h5cc and h5pcc but h5cc appears first. If you reverse them and list h5pcc first, then the parallel version becomes preferred. Thus, one simple solution might be to just introduce a variable, say HDF5_PREFER_PARALLEL, which determines the search order. If it's true, then the call to find_program would list h5pcc first.
Nico, I tried your solution but it doesn't work for me, i.e., HDF5_LIBRARIES still returns libraries for the serial installation. |
|
|
(0039410)
|
Paul Romano
|
2015-09-14 04:45
(edited on: 2015-09-14 04:46) |
|
|
|
(0039418)
|
Brad King
|
2015-09-14 10:12
|
|
|
|
(0040396)
|
Robert Maynard
|
2016-02-01 09:10
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|