- get the NoPFS library with: git clone [email protected]:KWang1998/NoPFS.git
- Install OpenCV:
- git clone https://github.com/opencv/opencv.git
- git -C opencv checkout 4.x
- mkdir build, cd build
- cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=~/opencv/4.x ../
- make -j64
- make install
- export OpenCV_DIR=$HOME/opencv/4.x/lib64/cmake/opencv4/
- Install texinfo:
- wget https://ftp.gnu.org/gnu/texinfo/texinfo-7.0.tar.gz
- tar -xvzf texinfo-7.0.tar.gz
- ./configure --prefix=/global/homes/k/kwf5687/texinfo/7.0
- make -j64
- make install
- export PATH=/global/homes/k/kwf5687/texinfo/7.0/bin:$PATH
- Install libconfig:
- git clone https://github.com/hyperrealm/libconfig.git
- vi configure.ac, del the line with "AC_CHECK_INCLUDES_DEFAULT"
- autoreconf
- ./configure --prefix=/global/homes/k/kwf5687/libconfig/install
- make -j64
- make install
- export CMAKE_PREFIX_PATH=/global/homes/k/kwf5687/libconfig/install:$CMAKE_PREFIX_PATH
- export CPATH=$CPATH:/global/homes/k/kwf5687/libconfig/install/include
- Modify the codes: add "#include <condition_variable>" in the libhdmlp/include/prefetcher/StagingBufferPrefetcher.h
- load hdf5 module: module load cray-hdf5/1.12.2.3
- In file /NoPFS/libhdmlp/CMakeLists.txt, add cmake_policy(SET CMP0074 NEW)
- Install the library:
- module load pytorch
- python3 setup.py install --prefix=~/HDMLP
- export PYTHONPATH=$PYTHONPATH:/global/homes/k/kwf5687/HDMLP/lib/python3.9/site-packages/hdmlp-0.1-py3.9.egg
- export LD_PRELOAD=/usr/lib64/libffi.so.7
- Run the benchmark