Closed markcmiller86 closed 1 year ago
grep: /H5Zzfp_plugin.h: No such file or directory
from config.cmake
[scratlantis:~/tmp/H5Z-ZFP-1.1.1-pre1] miller86% make CC=gcc HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-1.0.0 PREFIX=`pwd`
grep: /H5Zzfp_plugin.h: No such file or directory
This is H5Z-ZFP version .
See http://h5z-zfp.readthedocs.io/en/latest/ file for more info.
Typical make command is...
make CC=<C-compiler> HDF5_HOME=<path> ZFP_HOME=<path> PREFIX=<path> all
where <path> is a dir whose children are include/lib/bin subdirs.
HDF5_HOME can also be specified by the HDF5 include directory,
library directory and bin directory separated by commas, i.e. HDF5_HOME=INC,LIB,BIN
Standard make variables (e.g. CFLAGS, LD, etc.) can be set as usual.
Optionally, add FC=<fortran-compiler> to include Fortran support and tests.
Available make targets are...
all - build everything
check - all + run tests
install - install compiled components
clean - clean away all derived targets
dist - create distribution tarfile
[scratlantis:~/tmp/H5Z-ZFP-1.1.1-pre1] miller86% make CC=gcc HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-1.0.0 PREFIX=`pwd` all
grep: /H5Zzfp_plugin.h: No such file or directory
cd src; /Applications/Xcode.app/Contents/Developer/usr/bin/make HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-1.0.0 PREFIX=/Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1 all
gcc -c H5Zzfp.c -o H5Zzfp_lib.o -DH5Z_ZFP_AS_LIB -fPIC -I. -I/Users/miller86/silo/zfp-1.0.0/include -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
ar cr libh5zzfp.a H5Zzfp_lib.o
gcc -c H5Zzfp_props.c -o H5Zzfp_props.o -fPIC -I. -I/Users/miller86/silo/zfp-1.0.0/include -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
ar cr libh5zzfp.a H5Zzfp_props.o
gcc -c H5Zzfp.c -o H5Zzfp_plugin.o -fPIC -I. -I/Users/miller86/silo/zfp-1.0.0/include -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
rm -rf plugin
mkdir plugin
gcc H5Zzfp_plugin.o -shared -o plugin/libh5zzfp.so \
-Wl,-rpath,/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -Wl,-rpath,/Users/miller86/silo/zfp-1.0.0/lib \
-L/Users/miller86/silo/zfp-1.0.0/lib -L/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -lhdf5 -lzfp
[scratlantis:~/tmp/H5Z-ZFP-1.1.1-pre1] miller86% make CC=gcc HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-1.0.0 PREFIX=`pwd` check
grep: /H5Zzfp_plugin.h: No such file or directory
cd src; /Applications/Xcode.app/Contents/Developer/usr/bin/make HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-1.0.0 PREFIX=/Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1 all
make[1]: Nothing to be done for `all'.
cd src; /Applications/Xcode.app/Contents/Developer/usr/bin/make HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-1.0.0 PREFIX=/Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1 install
install -d /Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1/{plugin,include,lib}
install plugin/libh5zzfp.so /Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1/plugin
install libh5zzfp.a /Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1/lib
install -m 644 H5Zzfp.h H5Zzfp_lib.h H5Zzfp_plugin.h H5Zzfp_version.h H5Zzfp_props.h /Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1/include
cd test; /Applications/Xcode.app/Contents/Developer/usr/bin/make HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-1.0.0 PREFIX=/Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1 check
gcc -c test_write.c -o test_write_lib.o -fPIC -DZFP_HAS_CFP=1 -DZFP_LIB_VERSION=0x1000 -I../src -I/Users/miller86/silo/zfp-1.0.0/include -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
cd ../src; /Applications/Xcode.app/Contents/Developer/usr/bin/make HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-1.0.0 PREFIX=/Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1 lib
make[2]: Nothing to be done for `lib'.
gcc test_write_lib.o -o test_write_lib -fPIC -Wl,-rpath,/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -Wl,-rpath,/Users/miller86/silo/zfp-1.0.0/lib -L../src -L/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -L/Users/miller86/silo/zfp-1.0.0/lib -lh5zzfp -lhdf5 -lzfp -lcfp -lstdc++ -lm
gcc -c test_read.c -o test_read_lib.o -fPIC -I../src -I/Users/miller86/silo/zfp-1.0.0/include -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
gcc test_read_lib.o -o test_read_lib -fPIC -Wl,-rpath,/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -Wl,-rpath,/Users/miller86/silo/zfp-1.0.0/lib -L../src -L/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -L/Users/miller86/silo/zfp-1.0.0/lib -lh5zzfp -lhdf5 -lzfp -lcfp -lstdc++ -lm
./test_write_lib rate=32 zfpmode=1 .......................... [PASSED]
./test_write_lib rate=16 zfpmode=1 .......................... [PASSED]
./test_write_lib rate=8 zfpmode=1 ........................... [PASSED]
Library rate tests .......................................... [PASSED]
./test_write_lib acc=0.1 zfpmode=3 .......................... [PASSED]
./test_write_lib acc=0.01 zfpmode=3 ......................... [PASSED]
./test_write_lib acc=0.001 zfpmode=3 ........................ [PASSED]
./test_write_lib acc=0.0001 zfpmode=3 ....................... [PASSED]
Library accuracy tests ...................................... [PASSED]
./test_write_lib prec=12 zfpmode=2 .......................... [PASSED]
./test_write_lib prec=16 zfpmode=2 .......................... [PASSED]
./test_write_lib prec=20 zfpmode=2 .......................... [PASSED]
./test_write_lib prec=24 zfpmode=2 .......................... [PASSED]
Library precision tests ..................................... [PASSED]
gcc -c test_error.c -o test_error.o -fPIC -DZFP_LIB_VERSION=0x1000 -I../src -I/Users/miller86/silo/zfp-1.0.0/include -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
gcc test_error.o -o test_error -fPIC -Wl,-rpath,/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -Wl,-rpath,/Users/miller86/silo/zfp-1.0.0/lib -L../src -L/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -L/Users/miller86/silo/zfp-1.0.0/lib -lh5zzfp -lhdf5 -lzfp -lcfp -lstdc++ -lm
./test_error ................................................ [PASSED]
./test_write_lib zfpmode=5 .................................. [PASSED]
cd ../src; /Applications/Xcode.app/Contents/Developer/usr/bin/make HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-1.0.0 PREFIX=/Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1 plugin
make[2]: Nothing to be done for `plugin'.
gcc -c test_write.c -o test_write_plugin.o -DH5Z_ZFP_USE_PLUGIN -DZFP_LIB_VERSION=0x1000 -fPIC -I../src -I/Users/miller86/silo/zfp-1.0.0/include -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
gcc test_write_plugin.o -o test_write_plugin -fPIC -Wl,-rpath,/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -Wl,-rpath,/Users/miller86/silo/zfp-1.0.0/lib -L/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -L/Users/miller86/silo/zfp-1.0.0/lib -lhdf5 -lzfp -lcfp -lstdc++ -lm
./test_write_plugin zfpmode=1 rate=32 ....................... [PASSED]
./test_write_plugin zfpmode=1 rate=16 ....................... [PASSED]
./test_write_plugin zfpmode=1 rate=8 ........................ [PASSED]
./test_write_plugin zfpmode=1 rate=4 ........................ [PASSED]
Plugin rate tests ........................................... [PASSED]
./test_write_plugin zfpmode=3 acc=0.1 ....................... [PASSED]
./test_write_plugin zfpmode=3 acc=0.01 ...................... [PASSED]
./test_write_plugin zfpmode=3 acc=0.001 ..................... [PASSED]
./test_write_plugin zfpmode=3 acc=0.0001 .................... [PASSED]
Plugin accuracy tests ....................................... [PASSED]
./test_write_plugin zfpmode=2 prec=12 ....................... [PASSED]
./test_write_plugin zfpmode=2 prec=16 ....................... [PASSED]
./test_write_plugin zfpmode=2 prec=20 ....................... [PASSED]
./test_write_plugin zfpmode=2 prec=24 ....................... [PASSED]
Plugin precision tests ...................................... [PASSED]
If using HDF5-1.8, make sure you have patched repack
gcc -c print_h5repack_farg.c -o print_h5repack_farg.o -fPIC -I../src -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
gcc print_h5repack_farg.o -o print_h5repack_farg
h5repack -n -f UD=32013,0,4,3,0,3539053052,1062232653 ... [PASSED]
./test_write_plugin zfpmode=5 ............................... [PASSED]
h5diff -v -d 0.00001 test_zfp_le.h5 test_zfp_be.h5 compressed compressed ........ [PASSED]
h5dump bigendian.h5 ............................................................. [PASSED]
./test_read_lib ifile=test_zfp_030040.h5 max_reldiff=0.025 .. [PASSED]
./test_read_lib ifile=test_zfp_030235.h5 max_reldiff=0.025 .. [PASSED]
./test_read_lib ifile=test_zfp_110050.h5 max_reldiff=0.025 .. [PASSED]
./test_read_lib ifile=test_zfp_110xxx.h5 max_reldiff=0.025 .. [PASSED]
Version compatibility tests ................................. [PASSED]
./test_write_lib zfpmode=3 doint=1 .......................... [PASSED]
./test_write_lib highd=1 .................................... [PASSED]
./test_write_lib sixd=1 ..................................... [PASSED]
./test_write_lib zfparr=1 rate=10 ........................... [PASSED]
[scratlantis:~/tmp/H5Z-ZFP-1.1.1-pre1] miller86% make CC=gcc HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-0.5.0 PREFIX=`pwd` all
grep: /H5Zzfp_plugin.h: No such file or directory
cd src; /Applications/Xcode.app/Contents/Developer/usr/bin/make HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-0.5.0 PREFIX=/Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1 all
gcc -c H5Zzfp.c -o H5Zzfp_lib.o -DH5Z_ZFP_AS_LIB -fPIC -I. -I/Users/miller86/silo/zfp-0.5.0/inc -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
ar cr libh5zzfp.a H5Zzfp_lib.o
gcc -c H5Zzfp_props.c -o H5Zzfp_props.o -fPIC -I. -I/Users/miller86/silo/zfp-0.5.0/inc -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
ar cr libh5zzfp.a H5Zzfp_props.o
gcc -c H5Zzfp.c -o H5Zzfp_plugin.o -fPIC -I. -I/Users/miller86/silo/zfp-0.5.0/inc -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
rm -rf plugin
mkdir plugin
gcc H5Zzfp_plugin.o -shared -o plugin/libh5zzfp.so \
-Wl,-rpath,/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -Wl,-rpath,/Users/miller86/silo/zfp-0.5.0/lib \
-L/Users/miller86/silo/zfp-0.5.0/lib -L/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -lhdf5 -lzfp
[scratlantis:~/tmp/H5Z-ZFP-1.1.1-pre1] miller86% make CC=gcc HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-0.5.0 PREFIX=`pwd` check
grep: /H5Zzfp_plugin.h: No such file or directory
cd src; /Applications/Xcode.app/Contents/Developer/usr/bin/make HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-0.5.0 PREFIX=/Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1 all
make[1]: Nothing to be done for `all'.
cd src; /Applications/Xcode.app/Contents/Developer/usr/bin/make HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-0.5.0 PREFIX=/Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1 install
install -d /Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1/{plugin,include,lib}
install plugin/libh5zzfp.so /Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1/plugin
install libh5zzfp.a /Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1/lib
install -m 644 H5Zzfp.h H5Zzfp_lib.h H5Zzfp_plugin.h H5Zzfp_version.h H5Zzfp_props.h /Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1/include
cd test; /Applications/Xcode.app/Contents/Developer/usr/bin/make HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-0.5.0 PREFIX=/Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1 check
gcc -c test_write.c -o test_write_lib.o -fPIC -DZFP_HAS_CFP=0 -DZFP_LIB_VERSION=0x050 -I../src -I/Users/miller86/silo/zfp-0.5.0/inc -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
cd ../src; /Applications/Xcode.app/Contents/Developer/usr/bin/make HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-0.5.0 PREFIX=/Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1 lib
make[2]: Nothing to be done for `lib'.
gcc test_write_lib.o -o test_write_lib -fPIC -Wl,-rpath,/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -Wl,-rpath,/Users/miller86/silo/zfp-0.5.0/lib -L../src -L/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -L/Users/miller86/silo/zfp-0.5.0/lib -lh5zzfp -lhdf5 -lzfp -lm
gcc -c test_read.c -o test_read_lib.o -fPIC -I../src -I/Users/miller86/silo/zfp-0.5.0/inc -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
gcc test_read_lib.o -o test_read_lib -fPIC -Wl,-rpath,/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -Wl,-rpath,/Users/miller86/silo/zfp-0.5.0/lib -L../src -L/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -L/Users/miller86/silo/zfp-0.5.0/lib -lh5zzfp -lhdf5 -lzfp -lm
./test_write_lib rate=32 zfpmode=1 .......................... [PASSED]
./test_write_lib rate=16 zfpmode=1 .......................... [PASSED]
./test_write_lib rate=8 zfpmode=1 ........................... [PASSED]
Library rate tests .......................................... [PASSED]
./test_write_lib acc=0.1 zfpmode=3 .......................... [PASSED]
./test_write_lib acc=0.01 zfpmode=3 ......................... [PASSED]
./test_write_lib acc=0.001 zfpmode=3 ........................ [PASSED]
./test_write_lib acc=0.0001 zfpmode=3 ....................... [PASSED]
Library accuracy tests ...................................... [PASSED]
./test_write_lib prec=12 zfpmode=2 .......................... [PASSED]
./test_write_lib prec=16 zfpmode=2 .......................... [PASSED]
./test_write_lib prec=20 zfpmode=2 .......................... [PASSED]
./test_write_lib prec=24 zfpmode=2 .......................... [PASSED]
Library precision tests ..................................... [PASSED]
gcc -c test_error.c -o test_error.o -fPIC -DZFP_LIB_VERSION=0x050 -I../src -I/Users/miller86/silo/zfp-0.5.0/inc -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
gcc test_error.o -o test_error -fPIC -Wl,-rpath,/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -Wl,-rpath,/Users/miller86/silo/zfp-0.5.0/lib -L../src -L/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -L/Users/miller86/silo/zfp-0.5.0/lib -lh5zzfp -lhdf5 -lzfp -lm
./test_error ................................................ [PASSED]
cd ../src; /Applications/Xcode.app/Contents/Developer/usr/bin/make HDF5_HOME=/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall ZFP_HOME=/Users/miller86/silo/zfp-0.5.0 PREFIX=/Users/miller86/tmp/H5Z-ZFP-1.1.1-pre1 plugin
make[2]: Nothing to be done for `plugin'.
gcc -c test_write.c -o test_write_plugin.o -DH5Z_ZFP_USE_PLUGIN -DZFP_LIB_VERSION=0x050 -fPIC -I../src -I/Users/miller86/silo/zfp-0.5.0/inc -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
gcc test_write_plugin.o -o test_write_plugin -fPIC -Wl,-rpath,/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -Wl,-rpath,/Users/miller86/silo/zfp-0.5.0/lib -L/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/lib -L/Users/miller86/silo/zfp-0.5.0/lib -lhdf5 -lzfp -lm
./test_write_plugin zfpmode=1 rate=32 ....................... [PASSED]
./test_write_plugin zfpmode=1 rate=16 ....................... [PASSED]
./test_write_plugin zfpmode=1 rate=8 ........................ [PASSED]
./test_write_plugin zfpmode=1 rate=4 ........................ [PASSED]
Plugin rate tests ........................................... [PASSED]
./test_write_plugin zfpmode=3 acc=0.1 ....................... [PASSED]
./test_write_plugin zfpmode=3 acc=0.01 ...................... [PASSED]
./test_write_plugin zfpmode=3 acc=0.001 ..................... [PASSED]
./test_write_plugin zfpmode=3 acc=0.0001 .................... [PASSED]
Plugin accuracy tests ....................................... [PASSED]
./test_write_plugin zfpmode=2 prec=12 ....................... [PASSED]
./test_write_plugin zfpmode=2 prec=16 ....................... [PASSED]
./test_write_plugin zfpmode=2 prec=20 ....................... [PASSED]
./test_write_plugin zfpmode=2 prec=24 ....................... [PASSED]
Plugin precision tests ...................................... [PASSED]
If using HDF5-1.8, make sure you have patched repack
gcc -c print_h5repack_farg.c -o print_h5repack_farg.o -fPIC -I../src -I/Users/miller86/silo/hdf5-1.14.0/build_serial/myinstall/include
gcc print_h5repack_farg.o -o print_h5repack_farg
h5repack -n -f UD=32013,0,4,3,0,3539053052,1062232653 ... [PASSED]
h5diff -v -d 0.00001 test_zfp_le.h5 test_zfp_be.h5 compressed compressed ........ [PASSED]
h5dump bigendian.h5 ............................................................. [PASSED]
./test_read_lib ifile=test_zfp_030040.h5 max_reldiff=0.025 .. [PASSED]
./test_read_lib ifile=test_zfp_030235.h5 max_reldiff=0.025 .. [PASSED]
./test_read_lib ifile=test_zfp_110050.h5 max_reldiff=0.025 .. [PASSED]
./test_read_lib ifile=test_zfp_110xxx.h5 max_reldiff=0.025 .. [PASSED]
Version compatibility tests ................................. [PASSED]
./test_write_lib zfpmode=3 doint=1 .......................... [SKIPPED]
./test_write_lib highd=1 .................................... [PASSED]
./test_write_lib sixd=1 ..................................... [SKIPPED]
./test_write_lib zfparr=1 rate=10 ........................... [SKIPPED]
It looks like in order to use cmake
for H5Z-ZFP, the ZFP library also has to have been installed using cmake
. No matter what I've tried, I am unable to get H5Z-ZFP cmake
logic to find and use a vanilla gmake
installed ZFP library. However, I can do that for HDF5 library.
Find_package for zfp may need: ZFP_DIR or ZFP_ROOT (I always get confused which one). Maybe that is the issue. Something we should add in GitHub actions.
I've tried setting both ZFP_DIR
and ZFP_ROOT
and I've looked at debug output from find_package
. For example, ...
quartz770{miller86}541: cmake --debug-find-pkg=ZFP -DCMAKE_PREFIX_PATH:PATH=/g/g11/miller86/silo/zfp-1.0.0 -DZFP_DIR:STRING=/g/g11/miller86/silo/zfp-1.0.0 ../H5Z-ZFP-1.1.1-pre1
Running with debug output on for the 'find' commands for package(s) ZFP.
-- HDF5 FORTRAN_INTERFACE ON
-- HDF5 find comps: C;shared;Fortran
-- Could NOT find HDF5 (missing: HDF5_DIR)
-- HDF5 C libs:0 static: and shared:
-- HDF5 Fortran libs: static: and shared:
-- HDF5- found: INC=/usr/lib64/gfortran/modules;/usr/include TOOLS=/usr/bin
-- HDF5 Fortran libs: include: and shared:
-- HDF5 link libs: /usr/lib64/libhdf5_fortran.so;/usr/lib64/libhdf5.so;/usr/lib64/libsz.so;/usr/lib64/libz.so;/usr/lib64/libdl.so;/usr/lib64/libm.so Includes: /usr/lib64/gfortran/modules;/usr/include
CMake Error at CMakeLists.txt:73 (find_package):
Could not find a package configuration file provided by "ZFP" with any of
the following names:
ZFPConfig.cmake
zfp-config.cmake
Add the installation prefix of "ZFP" to CMAKE_PREFIX_PATH or set "ZFP_DIR"
to a directory containing one of the above files. If "ZFP" provides a
separate development package or SDK, be sure it has been installed.
CMake Debug Log at CMakeLists.txt:73 (find_package):
/g/g11/miller86/silo/zfp-1.0.0/ZFPConfig.cmake
/g/g11/miller86/silo/zfp-1.0.0/zfp-config.cmake
<PackageName>_ROOT CMake variable [CMAKE_FIND_USE_PACKAGE_ROOT_PATH].
/g/g11/miller86/silo/zfp-1.0.0
CMAKE_PREFIX_PATH variable [CMAKE_FIND_USE_CMAKE_PATH].
none
CMAKE_FRAMEWORK_PATH and CMAKE_APPBUNDLE_PATH variables
[CMAKE_FIND_USE_CMAKE_PATH].
none
Env variable ZFP_DIR [CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH].
none
CMAKE_PREFIX_PATH env variable [CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH].
none
CMAKE_FRAMEWORK_PATH and CMAKE_APPBUNDLE_PATH env variables
[CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH].
none
Paths specified by the find_package HINTS option.
none
Standard system environment variables
[CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH].
/usr/global/tools/jobutils
/usr/tce/packages/mvapich2/mvapich2-2.3.7-intel-classic-2021.6.0-magic
/usr/tce/packages/intel-classic/intel-classic-2021.6.0-magic
/usr/tce
/usr/lib64/ccache
/usr/local
/usr
/g/g11/miller86
/g/g11/miller86/tmp/H5Z-ZFP-1.1.1-pre1-build
CMake User Package Registry [CMAKE_FIND_USE_PACKAGE_REGISTRY].
none
CMake variables defined in the Platform file
[CMAKE_FIND_USE_CMAKE_SYSTEM_PATH].
/
/usr/tce/backend/installations/linux-rhel8-x86_64/gcc-10.3.1/cmake-3.23.1-mdfqd2l7c33zg7xcvqizwz25vqmp7jfw
/usr/X11R6
/usr/pkg
/opt
CMake System Package Registry
[CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY].
none
Paths specified by the find_package PATHS option.
none
find_package considered the following locations for ZFP's Config module:
/g/g11/miller86/silo/zfp-1.0.0/ZFPConfig.cmake
/g/g11/miller86/silo/zfp-1.0.0/zfp-config.cmake
/usr/global/tools/jobutils/ZFPConfig.cmake
/usr/global/tools/jobutils/zfp-config.cmake
/usr/tce/packages/mvapich2/mvapich2-2.3.7-intel-classic-2021.6.0-magic/ZFPConfig.cmake
/usr/tce/packages/mvapich2/mvapich2-2.3.7-intel-classic-2021.6.0-magic/zfp-config.cmake
/usr/tce/packages/intel-classic/intel-classic-2021.6.0-magic/ZFPConfig.cmake
/usr/tce/packages/intel-classic/intel-classic-2021.6.0-magic/zfp-config.cmake
/usr/tce/ZFPConfig.cmake
/usr/tce/zfp-config.cmake
/usr/lib64/ccache/ZFPConfig.cmake
/usr/lib64/ccache/zfp-config.cmake
/usr/local/ZFPConfig.cmake
/usr/local/zfp-config.cmake
/usr/ZFPConfig.cmake
/usr/zfp-config.cmake
/g/g11/miller86/ZFPConfig.cmake
/g/g11/miller86/zfp-config.cmake
/g/g11/miller86/tmp/H5Z-ZFP-1.1.1-pre1-build/ZFPConfig.cmake
/g/g11/miller86/tmp/H5Z-ZFP-1.1.1-pre1-build/zfp-config.cmake
/ZFPConfig.cmake
/zfp-config.cmake
/usr/tce/backend/installations/linux-rhel8-x86_64/gcc-10.3.1/cmake-3.23.1-mdfqd2l7c33zg7xcvqizwz25vqmp7jfw/ZFPConfig.cmake
/usr/tce/backend/installations/linux-rhel8-x86_64/gcc-10.3.1/cmake-3.23.1-mdfqd2l7c33zg7xcvqizwz25vqmp7jfw/zfp-config.cmake
/opt/ZFPConfig.cmake
/opt/zfp-config.cmake
The file was not found.
-- Configuring incomplete, errors occurred!
In all cases, it appears to be looking for *.cmake
files. I think we may need to write our own FindZFP.cmake
which first tries generic thing and then tries using ZFP_ROOT
if specified. Does that make sense?
I've looked at Cmake docs to ask if there is a way to inform cmake's find_package
to search for the package more generally than just looking for *.cmake
files or if there is a set of variables that once defined overrrides whatever find_package
would have done. I am currently unable to find that info but I believe its possible. I'll ask ChatGPT ;)
I'm certainly no CMake expert, but zfp-config.cmake gets generated when you make install
. You might have to build and install zfp rather than just point CMake at the zfp repo.
Or we can file an issue with CMake. We need to do the same for HDF5's find_package. We had to have additional steps for CGNS to find autotools build of HDF5. The find_package should handle both cases.
I'm certainly no CMake expert, but zfp-config.cmake gets generated when you
make install
.
@lindstro does that happen for a vanilla gmake install
also or just for cmake .; make install
?
Well, maybe ZFP's install
target is available only for a cmake
build. A vanilla gmake
build doesn't appear to have an install
target anyways. At least ZFP-1.0.0
@lindstro does that happen for a vanilla
gmake install
also or just forcmake .; make install
?
The latter only, I'm afraid. I got started on support for gmake install
, but this is tricky to get right.
Ok, what I think I'll do for this release regarding CMake builds is to recommend it as preferred method of building but then also just document that ZFP must also have been configured and installed using CMake.
@markcmiller86 I am a bit late to the whole discussion. When I introduced the CMake build system for H5Z-ZFP, I assumed that ZFP has been build with CMake. Apparently, I did not make this assumption explicit in the documentation.
As far as I know within the CMake community there is a tendency that, for example, a library should provide its own CMake config file instead of having a centralized Find<library>.cmake
file. What I do not fully realize this may be a problem if the library is provided by the OS itself. Having said this all, I am not saying you should not try to ask CMake to provide such a Find<library>.cmake
but you may experience some push back from them.
h5repack
tests failed for some reasonh5repack
tests worked perfectly fine.config.make
(PR coming)./test_write_lib rate=32 zfpmode=1 .......................... [PASSED]
./test_write_lib rate=16 zfpmode=1 .......................... [PASSED]
./test_write_lib rate=8 zfpmode=1 ........................... [PASSED]
Library rate tests .......................................... [PASSED]
./test_write_lib acc=0.1 zfpmode=3 .......................... [PASSED]
./test_write_lib acc=0.01 zfpmode=3 ......................... [PASSED]
./test_write_lib acc=0.001 zfpmode=3 ........................ [PASSED]
./test_write_lib acc=0.0001 zfpmode=3 ....................... [PASSED]
Library accuracy tests ...................................... [PASSED]
./test_write_lib prec=12 zfpmode=2 .......................... [PASSED]
./test_write_lib prec=16 zfpmode=2 .......................... [PASSED]
./test_write_lib prec=20 zfpmode=2 .......................... [PASSED]
./test_write_lib prec=24 zfpmode=2 .......................... [PASSED]
Library precision tests ..................................... [PASSED]
cc test_error.o -o test_error -fPIC -Wl,-rpath,/usr/gapps/silo/hdf5/1.14.0/toss_4_x86_64_ib_gcc.10.3.1/lib -Wl,-rpath,/g/g11/miller86/tmp/H5Z-ZFP-1.1.1-pre1/../zfp-0.5.0.surface/lib -L../src -L/usr/gapps/silo/hdf5/1.14.0/toss_4_x86_64_ib_gcc.10.3.1/lib -L/g/g11/miller86/tmp/H5Z-ZFP-1.1.1-pre1/../zfp-0.5.0.surface/lib -lh5zzfp -lhdf5 -lzfp -lm
./test_error ................................................ [PASSED]
cd ../src; make HDF5_HOME=/usr/gapps/silo/hdf5/1.14.0/toss_4_x86_64_ib_gcc.10.3.1 ZFP_HOME=/g/g11/miller86/tmp/H5Z-ZFP-1.1.1-pre1/../zfp-0.5.0.surface PREFIX=/g/g11/miller86/tmp/H5Z-ZFP-1.1.1-pre1/install plugin
make[2]: Entering directory '/g/g11/miller86/tmp/H5Z-ZFP-1.1.1-pre1/src'
make[2]: Nothing to be done for 'plugin'.
make[2]: Leaving directory '/g/g11/miller86/tmp/H5Z-ZFP-1.1.1-pre1/src'
cc test_write_plugin.o -o test_write_plugin -fPIC -Wl,-rpath,/usr/gapps/silo/hdf5/1.14.0/toss_4_x86_64_ib_gcc.10.3.1/lib -Wl,-rpath,/g/g11/miller86/tmp/H5Z-ZFP-1.1.1-pre1/../zfp-0.5.0.surface/lib -L/usr/gapps/silo/hdf5/1.14.0/toss_4_x86_64_ib_gcc.10.3.1/lib -L/g/g11/miller86/tmp/H5Z-ZFP-1.1.1-pre1/../zfp-0.5.0.surface/lib -lhdf5 -lzfp -lm
./test_write_plugin zfpmode=1 rate=32 ....................... [PASSED]
./test_write_plugin zfpmode=1 rate=16 ....................... [PASSED]
./test_write_plugin zfpmode=1 rate=8 ........................ [PASSED]
./test_write_plugin zfpmode=1 rate=4 ........................ [PASSED]
Plugin rate tests ........................................... [PASSED]
./test_write_plugin zfpmode=3 acc=0.1 ....................... [PASSED]
./test_write_plugin zfpmode=3 acc=0.01 ...................... [PASSED]
./test_write_plugin zfpmode=3 acc=0.001 ..................... [PASSED]
./test_write_plugin zfpmode=3 acc=0.0001 .................... [PASSED]
Plugin accuracy tests ....................................... [PASSED]
./test_write_plugin zfpmode=2 prec=12 ....................... [PASSED]
./test_write_plugin zfpmode=2 prec=16 ....................... [PASSED]
./test_write_plugin zfpmode=2 prec=20 ....................... [PASSED]
./test_write_plugin zfpmode=2 prec=24 ....................... [PASSED]
Plugin precision tests ...................................... [PASSED]
If using HDF5-1.8, make sure you have patched repack
h5repack -n -f UD=32013,0,4,3,0,3539053052,1062232653 ... [PASSED]
h5diff -v -d 0.00001 test_zfp_le.h5 test_zfp_be.h5 compressed compressed ........ [PASSED]
h5dump bigendian.h5 ............................................................. [PASSED]
./test_read_lib ifile=test_zfp_030040.h5 max_reldiff=0.025 .. [PASSED]
./test_read_lib ifile=test_zfp_030235.h5 max_reldiff=0.025 .. [PASSED]
./test_read_lib ifile=test_zfp_110050.h5 max_reldiff=0.025 .. [PASSED]
./test_read_lib ifile=test_zfp_110xxx.h5 max_reldiff=0.025 .. [PASSED]
Version compatibility tests ................................. [PASSED]
./test_write_lib zfpmode=3 doint=1 .......................... [SKIPPED]
./test_write_lib highd=1 .................................... [PASSED]
./test_write_lib sixd=1 ..................................... [SKIPPED]
./test_write_lib zfparr=1 rate=10 ........................... [SKIPPED]
- I am getting a presistent error message
grep: /H5Zzfp_plugin.h: No such file or directory
fromconfig.cmake
I have fixed this too (PR coming)
macOS 12.6.7 / CMake 3.24.3 / ZFP-1.0.0 (CMake build) / HDF5-1.14.0
ZFP_DIR
variable and set it to dir containingzfp-config.cmake
. And, of course, ZFP had to have been built usingCMake
gfortran
or myCMake
's understanding ofgfortran
is hosed.So, it looks like
XXX_ROOT
is used to specify installation dir which is parent toXXX
lib
andinclude
dirs, which in the tests below, I used forHDF5
because I had used autotools to build and install that.Disabling fortran fixes...