Commit 9806b7ff authored by Andreas Gocht's avatar Andreas Gocht

use io branch

parent 7471afda
......@@ -20,6 +20,7 @@ Namespace: amd64
cudnn-9.0-linux-x64-v7.1.tgz /tmp/
%post
UPDATE_SCOREP=true
apt-get update
apt-get dist-upgrade -y
......@@ -90,7 +91,7 @@ Namespace: amd64
apt-get -y install zlib1g-dev autotools-dev automake autoconf gcc-5-plugin-dev flex bison texinfo
cd /apps
if [ ! -d scorep ]; then
if [ ! -d scorep -o $UPDATE_SCOREP ]; then
#get a recent Score-P from trunk (the only one that have the gcc-7 patch)
......@@ -105,7 +106,23 @@ Namespace: amd64
libtool --version
cd /apps
svn co --username scorep --password foo42bar --non-interactive https://silc.zih.tu-dresden.de/svn/silc-root/trunk scorep
if [ $UPDATE_SCOREP ]; then
rm -rf scorep
rm -rf /usr/lib/libscorep*
rm -rf /usr/lib/libotf2*
rm -rf /usr/lib/libcube*
rm -rf /usr/include/scorep/
rm -rf /usr/include/otf2/
rm -rf /usr/include/cubew/
rm -rf /usr/include/cubelib/
rm -rf /usr/include/opari2/
rm -rf /usr/bin/scorep*
rm -rf /usr/bin/opari2*
rm -rf /usr/bin/cube*
rm -rf /usr/bin/otf2*
fi
svn co --username scorep --password foo42bar --non-interactive https://silc.zih.tu-dresden.de/svn/silc-root/branches/TRY_TUD_io_recording scorep
cd scorep
./bootstrap
mkdir build
......@@ -123,7 +140,8 @@ Namespace: amd64
'--enable-debug' \
'CFLAGS=-g' \
'CXXFLAGS=-g'
make -j 4 # just for my notebook, you might want to use a higher number
#make -j 4 # just for my notebook, you might want to use a higher number
make
make install
fi
......@@ -137,9 +155,14 @@ Namespace: amd64
cd /apps
if [ ! -d scorep_binding_python ]; then
git clone https://github.com/score-p/scorep_binding_python
cd scorep_binding_python
if [ ! -d scorep_binding_python -o $UPDATE_SCOREP]; then
if [ ! -d scorep_binding_python ]; then
git clone https://github.com/score-p/scorep_binding_python
cd scorep_binding_python
else
cd scorep_binding_python
git pull
fi
python setup.py install
python3 setup.py install
fi
......
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