|
@@ -2,22 +2,21 @@
|
|
|
|
|
|
# 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_LINK="http://www.cs.virginia.edu/~kw5na/lava/Rodinia/Packages/Current/rodinia_3.1.tar.bz2"
|
|
|
|
|
|
+BENCHMARK_REPO="http://gogs.heisenberg.ovh/andreagus/rodinia-benchmark.git"
|
|
BASE_DIR=`pwd`
|
|
BASE_DIR=`pwd`
|
|
|
|
|
|
-# Install all the needed dependencies 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
|
|
|
|
|
|
# Create the needed folders
|
|
# Create the needed folders
|
|
if [ ! -d "runtime" ]; then
|
|
if [ ! -d "runtime" ]; then
|
|
mkdir runtime
|
|
mkdir runtime
|
|
- wget -qO- $RUNTIME_LINK | tar xzvf - -C runtime/
|
|
|
|
|
|
+ wget -qO- $RUNTIME_LINK | tar xzvf - -C runtime/
|
|
fi
|
|
fi
|
|
|
|
|
|
-if [ ! -d "benchmark" ]; then
|
|
|
|
- mkdir benchmark
|
|
|
|
- wget -qO- $BENCHMARK_LINK | tar xjvf - -C benchmark/
|
|
|
|
|
|
+if [ ! -d "rodinia-benchmark" ]; then
|
|
|
|
+ git clone $BENCHMARK_REPO
|
|
fi
|
|
fi
|
|
|
|
|
|
RUNTIME_DIR=runtime/`ls runtime`
|
|
RUNTIME_DIR=runtime/`ls runtime`
|
|
@@ -31,6 +30,7 @@ fi
|
|
|
|
|
|
# Compile the runtime
|
|
# Compile the runtime
|
|
cd $RUNTIME_DIR/build
|
|
cd $RUNTIME_DIR/build
|
|
|
|
+make
|
|
cmake -DLLC_HOST_CPU=cortex-a15 ../
|
|
cmake -DLLC_HOST_CPU=cortex-a15 ../
|
|
make -j8
|
|
make -j8
|
|
|
|
|