client: only do le64_to_cpu() on io_sample_data member if iolog is histogram
[fio.git] / ci / travis-install-pmdk.sh
CommitLineData
e4c4625f
JM
1#!/bin/bash -e
2
3# pmdk v1.9.1 release
4PMDK_VERSION=1.9.1
5
6WORKDIR=$(pwd)
7
8#
9# The '/bin/sh' shell used by PMDK's 'make install'
10# does not know the exact localization of clang
11# and fails with:
12# /bin/sh: 1: clang: not found
13# if CC is not set to the full path of clang.
14#
d17f5c8b
BVA
15CC=$(type -P "$CC")
16export CC
e4c4625f
JM
17
18# Install PMDK libraries, because PMDK's libpmem
19# is a dependency of the librpma fio engine.
20# Install it from a release package
21# with already generated documentation,
22# in order to not install 'pandoc'.
23wget https://github.com/pmem/pmdk/releases/download/${PMDK_VERSION}/pmdk-${PMDK_VERSION}.tar.gz
24tar -xzf pmdk-${PMDK_VERSION}.tar.gz
25cd pmdk-${PMDK_VERSION}
d17f5c8b
BVA
26make -j"$(nproc)" NDCTL_ENABLE=n
27sudo make -j"$(nproc)" install prefix=/usr NDCTL_ENABLE=n
28cd "$WORKDIR"
e4c4625f 29rm -rf pmdk-${PMDK_VERSION}