Skip to content

Commit

Permalink
#2183: build: add ldms to build process
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Nov 9, 2023
1 parent bc38abf commit f1dc5e6
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
31 changes: 31 additions & 0 deletions ci/deps/ldms.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash

set -exo pipefail

if test $# -lt 1
then
echo "usage: ./$0 <ldms-version>"
exit 1
fi

version=$1
arch=x86_64

ldms_tar_name=ovis-ldms-${version}.tar.gz
ldms_name=ovis-ldms-${version}

echo "${version}"
echo "${ldms_tar_name}"

wget https://github.com/ovis-hpc/ovis/releases/download/OVIS-${version}/${ldms_tar_name}

tar xzf ${ldms_tar_name}
rm ${ldms_tar_name}
cd ${ldms_name}
./configure \
${installation_prefix:+ --prefix"=${installation_prefix}"}
make -j4
make install
cd -
rm -rf ${ldms_name}

7 changes: 7 additions & 0 deletions ci/docker/ubuntu-gnu-cpp.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ RUN apt-get update -y -q && \
python3 \
valgrind \
wget \
bison \
flex \
libssl-dev \
libpython3-dev \
zlib1g \
zlib1g-dev \
brotli \
Expand Down Expand Up @@ -81,6 +85,9 @@ RUN if test ${zoltan_enabled} -eq 1; then \
./zoltan.sh -j4 ${ZOLTAN_INSTALL_DIR}; \
fi

COPY ./ci/deps/ldms.sh ldms.sh
RUN ./ldms.sh 4.3.11

RUN apt-get update -y -q && \
apt-get install -y -q --no-install-recommends \
lcov && \
Expand Down

0 comments on commit f1dc5e6

Please sign in to comment.