-
Notifications
You must be signed in to change notification settings - Fork 6
Home
-
make a separate build directory for out of source build and cd into it.
-
module load cmake/3.20.2
-
module load cray-hdf5
-
module swap PrgEnv-intel PrgEnv-gnu
-
We are now using root version built via spack native on Cori (by Patrick Gartung), here is the final cmake command with all the necessary cmake variables:
export LD_LIBRARY_PATH=/global/u1/g/gartung/spack/opt/spack/cray-cnl7-haswell/gcc-11.2.0/fwdata-12.4.0.p2-he5m4r7l33b2bd7ltvhloqi6wnji22bn/lib:/global/u1/g/gartung/spack/opt/spack/cray-cnl7-haswell/gcc-11.2.0/root-6.26.00-5bqqtsrl2kjwjawszrj5dqyking2ykyl/lib:$LD_LIBRARY_PATH
export ROOT_INCLUDE_PATH=/global/u1/g/gartung/spack/opt/spack/cray-cnl7-haswell/gcc-11.2.0/fwdata-12.4.0.p2-he5m4r7l33b2bd7ltvhloqi6wnji22bn/src:/global/u1/g/gartung/spack/opt/spack/cray-cnl7-haswell/gcc-11.2.0/fmt-8.0.1-d7c7kmuqkw7msf2ejvceipmwgegtfm6t/include:/global/u1/g/gartung/spack/opt/spack/cray-cnl7-haswell/gcc-11.2.0/root-6.26.00-5bqqtsrl2kjwjawszrj5dqyking2ykyl/include
cmake ../root_serialization/ -Dzstd_DIR=/global/u1/g/gartung/spack/opt/spack/cray-cnl7-haswell/gcc-11.2.0/zstd-1.5.0-xio7hqq2lqv6twpxjbi3n2bbu6kmrzfx/lib/cmake/zstd -DROOT_DIR=/global/u1/g/gartung/spack/opt/spack/cray-cnl7-haswell/gcc-11.2.0/root-6.26.00-5bqqtsrl2kjwjawszrj5dqyking2ykyl/cmake -DTBB_DIR=/global/u1/g/gartung/spack/opt/spack/cray-cnl7-haswell/gcc-11.2.0/intel-tbb-2021.3.0-m7mebj7ify5cexox3vrqu4tm4stmjvvr/lib64/cmake/TBB -DCMAKE_PREFIX_PATH="/global/u1/g/gartung/spack/opt/spack/cray-cnl7-haswell/gcc-11.2.0/lz4-1.9.3-kkxjuyx54ayccky3ltv3tsaxgq6luyhh;/global/u1/g/gartung/spack/opt/spack/cray-cnl7-haswell/gcc-11.2.0/zstd-1.5.0-xio7hqq2lqv6twpxjbi3n2bbu6kmrzfx" -Dnlohmann_json_DIR=/global/u1/g/gartung/spack/opt/spack/cray-cnl7-haswell/gcc-11.2.0/nlohmann-json-3.10.4-sn5qoaotixgvcu55m2gqjjhri447izjw/lib64/cmake/nlohmann_json -DCMAKE_CXX_COMPILER=/opt/gcc/11.2.0/bin/gcc -DHDF5_DIR=${HDF5_DIR} -DCMAKE_BUILD_TYPE=RelWithDebInfo
-
make -j10
-
Run tests:
ctest -j10
./threaded_io_test ReplicatedRootSource=/global/homes/s/ssehrish/cce-ios/250202_181_RECO.root 1 1 0 10 HDFOutputer=reco.h5
./threaded_io_test HDFSource=reco.h5 1 1 0 10 HDFOutputer=reco2.h5
./threaded_io_test HDFSource=reco.h5 1 1 0 10 PDSOutputer=reco.pds