Commit 5efc19fd authored by Andreas Gocht's avatar Andreas Gocht

allow update of scorep_python_bindings

parent 9806b7ff
......@@ -20,7 +20,8 @@ Namespace: amd64
cudnn-9.0-linux-x64-v7.1.tgz /tmp/
%post
UPDATE_SCOREP=true
UPDATE_SCOREP=false
UPDATE_PYTHON_BINDINGS=true
apt-get update
apt-get dist-upgrade -y
......@@ -89,9 +90,26 @@ Namespace: amd64
# scorep requirements
apt-get -y install zlib1g-dev autotools-dev automake autoconf gcc-5-plugin-dev flex bison texinfo
apt-get -y install python3-numpy python3-dev python3-pip python3-wheel
cd /apps
if [ ! -d tensorflow-dep ]; then
mkdir tensorflow-dep
cd tensorflow-dep
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.1.85-1_amd64.deb
dpkg -i cuda-repo-ubuntu1604_9.1.85-1_amd64.deb
apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
apt-get -y update
apt-get -y install cuda-9-0
apt-get -y install cuda-command-line-tools-9-0
cp /tmp/cudnn-9.0-linux-x64-v7.1.tgz ./
tar -xf cudnn-9.0-linux-x64-v7.1.tgz
fi
cd /apps
if [ ! -d scorep -o $UPDATE_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)
......@@ -106,7 +124,7 @@ Namespace: amd64
libtool --version
cd /apps
if [ $UPDATE_SCOREP ]; then
if [ $($UPDATE_SCOREP) ]; then
rm -rf scorep
rm -rf /usr/lib/libscorep*
rm -rf /usr/lib/libotf2*
......@@ -138,8 +156,10 @@ Namespace: amd64
'--enable-static=no' \
'--enable-shared=yes' \
'--enable-debug' \
'CFLAGS=-g' \
'CXXFLAGS=-g'
'--with-cuda' \
'--with-libcudart=/usr/local/cuda'\
'CFLAGS=-g -O3' \
'CXXFLAGS=-g -O3'
#make -j 4 # just for my notebook, you might want to use a higher number
make
make install
......@@ -155,16 +175,19 @@ Namespace: amd64
cd /apps
if [ ! -d scorep_binding_python -o $UPDATE_SCOREP]; then
if [ ! -d scorep_binding_python -o $($UPDATE_SCOREP) -o $($UPDATE_PYTHON_BINDINGS) ]; 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
git clean -df
fi
python setup.py install
python3 setup.py install
pip install --upgrade .
pip3 install --upgrade .
fi
......@@ -192,22 +215,6 @@ Namespace: amd64
export PATH=$PATH:/apps/bazel/output/
apt-get -y install python3-numpy python3-dev python3-pip python3-wheel
cd /apps
if [ ! -d tensorflow-dep ]; then
mkdir tensorflow-dep
cd tensorflow-dep
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.1.85-1_amd64.deb
dpkg -i cuda-repo-ubuntu1604_9.1.85-1_amd64.deb
apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
apt-get -y update
apt-get -y install cuda-9-0
apt-get -y install cuda-command-line-tools-9-0
cp /tmp/cudnn-9.0-linux-x64-v7.1.tgz ./
tar -xf cudnn-9.0-linux-x64-v7.1.tgz
fi
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/extras/CUPTI/lib64:/apps/tensorflow-dep/cuda/lib64
cd /apps
......
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