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

HDF5 cannot be found for pdc_import.c and pdc_export.c when BUILD_TOOLS=ON #160

Closed
zhangwei217245 opened this issue Oct 18, 2023 · 3 comments
Assignees
Labels
priority: medium Medium priority type: bug Something isn't working

Comments

@zhangwei217245
Copy link
Collaborator

zhangwei217245 commented Oct 18, 2023

When compiling PDC project, if BUILD_TOOLS is set to ON, the compilation of PDC may fail since HDF5 is not able to be found. Proper use of FindHDF5 needs to be included in the CMakeLists.txt under src/tools so that those two artifacts gets compiled.

Command tried:

cmake -DBUILD_MPI_TESTING=ON -DBUILD_SHARED_LIBS=ON -DPDC_SERVER_CACHE=ON -DBUILD_TESTING=ON -DCMAKE_INSTALL_PREFIX=$PDC_DIR -DPDC_ENABLE_MPI=ON -DMERCURY_DIR=$MERCURY_DIR -DCMAKE_C_COMPILER=mpicc -DMPI_RUN_CMD="srun -A m2621 --qos=debug --constraint=cpu --tasks-per-node=64" -DCMAKE_INSTALL_PREFIX=$PDC_DIR -DBUILD_TOOLS=ON ../

@zhangwei217245 zhangwei217245 added type: bug Something isn't working priority: medium Medium priority labels Oct 18, 2023
@zhangwei217245
Copy link
Collaborator Author

image

@houjun
Copy link
Member

houjun commented Oct 18, 2023

You can compile it by doing "export HDF5_DIR=/path/to/hdf5/install" before the cmake command.

@zhangwei217245
Copy link
Collaborator Author

when cray-parallel-hdf5 module is loaded, $HDF5_DIR is already set. CMake was not able to find HDF5 because the compiler used in NERSC-ci was 'mpicc' instead of 'cc'.

We should use cc instead. This issue was fixed in PR #161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: medium Medium priority type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants