Ver código fonte

SCRIPTS: Automation of OpenCL runtime deploy

First attempt to automate the fetch and installation on the board of the
OpenCL runtime and the rodinia benchmarks.
Andrea Gussoni 8 anos atrás
pai
commit
fa63400d94
1 arquivos alterados com 31 adições e 0 exclusões
  1. 31 0
      utils/deploy.sh

+ 31 - 0
utils/deploy.sh

@@ -0,0 +1,31 @@
+#!/bin/bash
+
+# Some useful environment variables
+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"
+BASE_DIR=`pwd`
+
+# Create the needed folders
+if [ ! -d "runtime" ]; then
+    mkdir runtime
+    wget -qO- $RUNTIME_LINK | tar xzvf - -C runtime/                                                  
+fi
+
+if [ ! -d "benchmark" ]; then
+    mkdir benchmark
+    wget -qO- $BENCHMARK_LINK | tar xjvf - -C benchmark/
+fi
+
+
+RUNTIME_DIR=runtime/`ls runtime`
+BENCHMARK_DIR=benchmark/`ls benchmark`
+echo $RUNTIME_DIR
+echo $BENCHMARK_DIR
+
+if [ ! -d "$RUNTIME_DIR/build" ]; then
+    mkdir $RUNTIME_DIR/build && cd "$_"
+    cmake -DLLC_HOST_CPU=cortex-a15 ../
+    cd $BASE_DIR
+fi
+echo `pwd`
+