9 # The '/bin/sh' shell used by PMDK's 'make install'
10 # does not know the exact localization of clang
12 # /bin/sh: 1: clang: not found
13 # if CC is not set to the full path of clang.
15 export CC=$(which $CC)
17 # Install PMDK libraries, because PMDK's libpmem
18 # is a dependency of the librpma fio engine.
19 # Install it from a release package
20 # with already generated documentation,
21 # in order to not install 'pandoc'.
22 wget https://github.com/pmem/pmdk/releases/download/${PMDK_VERSION}/pmdk-${PMDK_VERSION}.tar.gz
23 tar -xzf pmdk-${PMDK_VERSION}.tar.gz
24 cd pmdk-${PMDK_VERSION}
25 make -j$(nproc) NDCTL_ENABLE=n
26 sudo make -j$(nproc) install prefix=/usr NDCTL_ENABLE=n
28 rm -rf pmdk-${PMDK_VERSION}