1#!/bin/bash -e 2 3# 11.02.2021 Merge pull request #866 from ldorau/rpma-mmap-memory-for-rpma_mr_reg-in-rpma_flush_apm_new 4LIBRPMA_VERSION=fbac593917e98f3f26abf14f4fad5a832b330f5c 5ZIP_FILE=rpma.zip 6 7WORKDIR=$(pwd) 8 9# install librpma 10wget -O $ZIP_FILE https://github.com/pmem/rpma/archive/${LIBRPMA_VERSION}.zip 11unzip $ZIP_FILE 12mkdir -p rpma-${LIBRPMA_VERSION}/build 13cd rpma-${LIBRPMA_VERSION}/build 14cmake .. -DCMAKE_BUILD_TYPE=Release \ 15 -DCMAKE_INSTALL_PREFIX=/usr \ 16 -DBUILD_DOC=OFF \ 17 -DBUILD_EXAMPLES=OFF \ 18 -DBUILD_TESTS=OFF 19make -j$(nproc) 20sudo make -j$(nproc) install 21cd $WORKDIR 22rm -rf $ZIP_FILE rpma-${LIBRPMA_VERSION} 23