Browse Source

SCRIPTS: Added debug messages to the deploy scripts

Added a debug message to the deploy script to better identify the phase
in case of problems when executing them.

Added some required dependencies.
Andrea Gussoni 7 years ago
parent
commit
3d5cce0ee9

+ 4 - 1
utils/deploy/get-and-compile-benchmark.sh

@@ -2,6 +2,10 @@
 BENCHMARK_REPO="https://gogs.heisenberg.ovh/andreagus/rodinia-benchmark.git"
 BASE_DIR=`pwd`
 
+# Output message for the user
+echo "We are retrieving, building and installing the benchmark suite"
+sleep 10
+
 # Check if the build direcroty already exists, otherwise create it
 if [ ! -d "build" ]; then
     mkdir build
@@ -15,7 +19,6 @@ if [ ! -d "rodinia-benchmark" ]; then
 fi
 
 cd rodinia-benchmark
-git checkout wip/platform-unification
 
 # Copy the script that time the benchmark in the benchmark directory
 cp $BASE_DIR/deploy/time-and-save.sh .

+ 7 - 0
utils/deploy/get-and-compile-power-utility.sh

@@ -2,6 +2,10 @@
 POWER_REPO="https://andreagus@bitbucket.org/zanella_michele/odroid_smartpower_bridge.git"
 BASE_DIR=`pwd`
 
+# Output message for the user
+echo "We are retrieving, building and installing the pocl power measurement utility"
+sleep 10
+
 # Check if the build direcroty already exists, otherwise create it
 if [ ! -d "build" ]; then
     mkdir build
@@ -9,6 +13,9 @@ fi
 
 cd build
 
+# Output message for the user
+echo "Please be aware that by default we are trying to clone the repository from my account of bitbucket, remember to replace the POWER_REPO variable in the script with the real reference from which you want to clone the repository"
+
 # Clone the repo containg the power measurement tool
 if [ ! -d "odroid_smartpower_bridge" ]; then
     git clone $POWER_REPO

+ 4 - 0
utils/deploy/get-and-compile-runtime.sh

@@ -2,6 +2,10 @@
 RUNTIME_LINK="http://portablecl.org/downloads/pocl-0.14.tar.gz"
 BASE_DIR=`pwd`
 
+# Output message for the user
+echo "We are retrieving, building and installing the pocl runtime"
+sleep 10
+
 # Check if the build direcroty already exists, otherwise create it
 if [ ! -d "build" ]; then
     mkdir build

+ 9 - 1
utils/deploy/install-requirements.sh

@@ -1,3 +1,11 @@
-# Install all the dependencies needed for compiling the runtime
+# Output message for the user
+echo "We are installing the dependencies"
+sleep 10
+
+# Install all the dependencies needed for compiling the runtime, the benchmarks and the power measurement utility
 sudo apt-get update && sudo apt-get upgrade -y
 sudo apt-get install -y vim build-essential flex bison libtool libncurses5* git-core htop cmake libhwloc-dev libclang-3.8-dev clang-3.8 and llvm-3.8-dev zlib1g ocl-icd-libopencl1 clinfo libglew-dev time gnuplot clinfo ocl-icd-dev ocl-icd-opencl-dev qt4-qmake libqt4-dev libusb-1.0-0-dev
+
+# Install the python dependencies for the creation of the charts with python
+sudo apt-get install python python-tk
+sudo -H pip install numpy matplotlib seaborn

+ 16 - 0
utils/plot/create-charts.sh

@@ -0,0 +1,16 @@
+#!/bin/bash
+
+# Copy here the results folder, to not clobber the main directory
+cp -r ../results .
+
+# Invoke all the python scripts needed to prepare and plot the data
+
+./preprocess.py
+
+./analyze.py
+
+./plot.py
+
+# Copy the charts folder one level above
+
+cp -r charts ../