deploy.sh 785 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. # Some useful environment variables
  3. RUNTIME_LINK="http://portablecl.org/downloads/pocl-0.14.tar.gz"
  4. BENCHMARK_LINK="http://www.cs.virginia.edu/~kw5na/lava/Rodinia/Packages/Current/rodinia_3.1.tar.bz2"
  5. BASE_DIR=`pwd`
  6. # Create the needed folders
  7. if [ ! -d "runtime" ]; then
  8. mkdir runtime
  9. wget -qO- $RUNTIME_LINK | tar xzvf - -C runtime/
  10. fi
  11. if [ ! -d "benchmark" ]; then
  12. mkdir benchmark
  13. wget -qO- $BENCHMARK_LINK | tar xjvf - -C benchmark/
  14. fi
  15. RUNTIME_DIR=runtime/`ls runtime`
  16. BENCHMARK_DIR=benchmark/`ls benchmark`
  17. echo $RUNTIME_DIR
  18. echo $BENCHMARK_DIR
  19. if [ ! -d "$RUNTIME_DIR/build" ]; then
  20. mkdir $RUNTIME_DIR/build && cd "$_"
  21. cmake -DLLC_HOST_CPU=cortex-a15 ../
  22. cd $BASE_DIR
  23. fi
  24. echo `pwd`