hpc-io / h5bench

A benchmark suite for measuring HDF5 performance.
https://h5bench.readthedocs.io
Other
38 stars 27 forks source link

Installation issue on MacOS #105

Closed KokoFan16 closed 1 year ago

KokoFan16 commented 1 year ago

I installed hdf5-mpi via "brew install hdf5-mpi" on MacOS, and the "cmake .. " can find it correctly.

-- Found HDF5: -- Found HDF5: /usr/local/Cellar/hdf5-mpi/1.14.1/lib/libhdf5.dylib;/usr/local/opt/libaec/lib/libsz.dylib;/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib/libz.tbd;/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib/libdl.tbd;/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib/libm.tbd (found version "1.14.1-2")  
-- Using HDF5 version: 1.14.1-2
-- Looking for H5_HAVE_SUBFILING_VFD
-- Looking for H5_HAVE_SUBFILING_VFD - not found

But when I tried to make it, 'hdf5.h' file cannot be found.

./h5bench/commons/h5bench_util.c:17:10: fatal error: 'hdf5.h' file not found
#include <hdf5.h>
     ^~~~~~~~
1 error generated.

I then tried the command "export CPATH="/usr/local/Cellar/hdf5-mpi/1.14.1/", and some new errors showed up:

./h5bench/h5bench_patterns/h5bench_write.c:340:9: error: implicit declaration of function 'H5Pset_dxpl_mpio' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        H5Pset_dxpl_mpio(*plist_id_out, H5FD_MPIO_COLLECTIVE);
        ^
./h5bench/h5bench_patterns/h5bench_write.c:931:9: error: implicit declaration of function 'H5Pset_all_coll_metadata_ops' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        H5Pset_all_coll_metadata_ops(fapl, 1);
        ^
./h5bench/h5bench_patterns/h5bench_write.c:932:9: error: implicit declaration of function 'H5Pset_coll_metadata_write' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        H5Pset_coll_metadata_write(fapl, 1);
        ^