|
@@ -3,11 +3,12 @@
|
|
# Some useful environment variables
|
|
# Some useful environment variables
|
|
RUNTIME_LINK="http://portablecl.org/downloads/pocl-0.14.tar.gz"
|
|
RUNTIME_LINK="http://portablecl.org/downloads/pocl-0.14.tar.gz"
|
|
BENCHMARK_REPO="http://gogs.heisenberg.ovh/andreagus/rodinia-benchmark.git"
|
|
BENCHMARK_REPO="http://gogs.heisenberg.ovh/andreagus/rodinia-benchmark.git"
|
|
|
|
+POWER_REPO="https://andreagus@bitbucket.org/zanella_michele/odroid_smartpower_bridge.git"
|
|
BASE_DIR=`pwd`
|
|
BASE_DIR=`pwd`
|
|
|
|
|
|
# Install all the dependencies needed for compiling the runtime
|
|
# Install all the dependencies needed for compiling the runtime
|
|
sudo apt-get update && sudo apt-get upgrade -y
|
|
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
|
|
|
|
|
|
+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
|
|
|
|
|
|
# Create the needed folders
|
|
# Create the needed folders
|
|
if [ ! -d "runtime" ]; then
|
|
if [ ! -d "runtime" ]; then
|
|
@@ -37,3 +38,12 @@ make -j8
|
|
|
|
|
|
# Add the .icd file that enable the ocl-icd loader to identify the mali platform
|
|
# Add the .icd file that enable the ocl-icd loader to identify the mali platform
|
|
echo "/usr/lib/arm-linux-gnueabihf/mali-egl/libOpenCL.so" | sudo tee /etc/OpenCL/vendors/mali.icd
|
|
echo "/usr/lib/arm-linux-gnueabihf/mali-egl/libOpenCL.so" | sudo tee /etc/OpenCL/vendors/mali.icd
|
|
|
|
+
|
|
|
|
+# Add an udev rule that allows to communicate with the power measurement device even if the user is not root
|
|
|
|
+cd $BASE_DIR
|
|
|
|
+sudo cp libusb.rules /etc/udev/rules.d/99-hiid.rules
|
|
|
|
+
|
|
|
|
+# Clone the repo containg the power measurement tool
|
|
|
|
+if [ ! -d "odroid_smartpower_bridge" ]; then
|
|
|
|
+ git clone $POWER_REPO
|
|
|
|
+fi
|