get-and-compile-benchmark.sh 566 B

12345678910111213141516171819202122232425
  1. # Some useful environment variables
  2. BENCHMARK_REPO="https://gogs.heisenberg.ovh/andreagus/rodinia-benchmark.git"
  3. BASE_DIR=`pwd`
  4. # Check if the build direcroty already exists, otherwise create it
  5. if [ ! -d "build" ]; then
  6. mkdir build
  7. fi
  8. cd build
  9. # Create the needed folders
  10. if [ ! -d "rodinia-benchmark" ]; then
  11. git clone $BENCHMARK_REPO
  12. fi
  13. cd rodinia-benchmark
  14. git checkout wip/platform-unification
  15. # Copy the script that time the benchmark in the benchmark directory
  16. cp $BASE_DIR/time-and-save.sh .
  17. # Compile the benchmarks
  18. make clean
  19. make OPENCL -j8