ECP-copa / Cabana

Performance-portable library for particle-based simulations
Other
193 stars 51 forks source link

CMake error for installation of HDF5 #657

Closed kwitaechong closed 8 months ago

kwitaechong commented 10 months ago

during configuration of Cabana, create wrong version of HDF5 version at

~/install/Cabana/lib/cmake/Cabana/CabanaConfig.cmake at line 47 with ths error messages,


  find_package called with invalid argument "1.14.1-2"
Call Stack (most recent call first):
~/install/Cabana/lib/cmake/Cabana/CabanaConfig.cmake:47 (find_dependency)
  CMakeLists.txt:18 (find_package)
streeve commented 10 months ago

@kwitaechong can you add the full error message?

dineshadepu commented 10 months ago

Hi @kwitaechong . I have recently installed Cabana on Ubuntu 22 with parallel hdf5. I have documented the order of installation of each package at https://gist.github.com/dineshadepu/6c3fac71d5d6c0035df079c6c2e44cf8 . You can follow it if you are facing any issues.

dineshadepu commented 10 months ago

@streeve @kwitaechong Yes, I face the same issue while installing cabana with parallel HDF5.

I think solution for this is, I have manually removed the hdf5 version number (here it is 1.14) in cmake file of cabana. The package find command somehow generated this additional version number. A fix if this would be good.

dineshadepu commented 10 months ago

image

Here is my manually corrected cmake file, which compiles and runs Cabana properly with hdf5.

kwitaechong commented 10 months ago

Yes, that manual fix correct this issue. Thanks

streeve commented 10 months ago

@brtnfld any ideas here?