Commit aac164e2 authored by Robert Dietrich's avatar Robert Dietrich

added (install) support for Likwid 4.3.3

parent b9d10851
......@@ -23,25 +23,27 @@ if [ $LIKWID_VERSION == '5.0.0' ] || [ $LIKWID_VERSION == '5.0.1' ]; then
wget https://github.com/RRZE-HPC/likwid/archive/v${LIKWID_VERSION}.tar.gz
tar xfz v${LIKWID_VERSION}.tar.gz
rm -f v${LIKWID_VERSION}.tar.gz
#git clone https://github.com/RRZE-HPC/likwid.git likwid-5.0.0
#cd likwid-5.0.0
#git checkout v5.0
#cd ..
elif [ $LIKWID_VERSION == 'git' ]; then
git clone https://github.com/RRZE-HPC/likwid.git likwid-${LIKWID_VERSION}
else
wget https://github.com/RRZE-HPC/likwid/archive/likwid-4.3.4.tar.gz
tar xfz ${LIKWID_VERSION}.tar.gz
#rm -f ${LIKWID_VERSION}.tar.gz
wget https://github.com/RRZE-HPC/likwid/archive/likwid-${LIKWID_VERSION}.tar.gz
tar xfz likwid-${LIKWID_VERSION}.tar.gz
rm -f likwid-${LIKWID_VERSION}.tar.gz
mv likwid-likwid-${LIKWID_VERSION} likwid-${LIKWID_VERSION}
fi
#git clone https://github.com/RRZE-HPC/likwid
#mv likwid likwid-${LIKWID_VERSION}
# install Likwid
cd likwid-${LIKWID_VERSION}
# apply PIKA patch (set counters)
if [ $LIKWID_VERSION == '5.0.1' ]; then
if [ $LIKWID_VERSION == '5.0.1' ] || [ $LIKWID_VERSION == 'git' ]; then
patch -p0 < $PIKA_PATCHES/pika_likwid-5.0.0_src.patch
elif [ $LIKWID_VERSION == '4.3.4' ]; then
wget https://github.com/RRZE-HPC/likwid/releases/download/4.3.4/likwid-4.3.4-perf.patch
patch -p1 < likwid-4.3.4-perf.patch
patch -p0 < $PIKA_PATCHES/prope_likwid-4.3.3_src.patch
elif [ $LIKWID_VERSION == '4.3.3' ]; then
patch -p0 < $PIKA_PATCHES/prope_likwid-4.3.3_src.patch
else
patch -p0 < $PIKA_PATCHES/pika_likwid-${LIKWID_VERSION}_src.patch
fi
......@@ -63,8 +65,8 @@ cp config.mk config.mk.backup
sed -i "/^PREFIX .*/ s|.*|PREFIX = $LIKWID_INST_PATH|" config.mk
# set access mode
#sed -i "/^ACCESSMODE = .*/ s|.*|ACCESSMODE = direct|" config.mk
sed -i "/^ACCESSMODE = .*/ s|.*|ACCESSMODE = perf_event|" config.mk
sed -i "/^ACCESSMODE = .*/ s|.*|ACCESSMODE = direct|" config.mk
#sed -i "/^ACCESSMODE = .*/ s|.*|ACCESSMODE = perf_event|" config.mk
# do not build access daemon or frequency changer
sed -i "/^BUILDDAEMON = .*/ s|.*|BUILDDAEMON = false|" config.mk
......
#!/bin/bash
### install python from sources ###
# requirements: libffi-devel
source ../pika_install.conf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment