get-and-compile-benchmark.sh 668 B

1234567891011121314151617181920212223242526272829
  1. # Some useful environment variables
  2. BENCHMARK_REPO="https://gogs.heisenberg.ovh/andreagus/rodinia-benchmark.git"
  3. BASE_DIR=`pwd`
  4. # Output message for the user
  5. echo "We are retrieving, building and installing the benchmark suite"
  6. sleep 10
  7. # Check if the build direcroty already exists, otherwise create it
  8. if [ ! -d "build" ]; then
  9. mkdir build
  10. fi
  11. cd build
  12. # Create the needed folders
  13. if [ ! -d "rodinia-benchmark" ]; then
  14. git clone $BENCHMARK_REPO
  15. fi
  16. cd rodinia-benchmark
  17. # Copy the script that time the benchmark in the benchmark directory
  18. cp $BASE_DIR/deploy/time-and-save.sh .
  19. cp -r $BASE_DIR/plot .
  20. # Compile the benchmarks
  21. make clean
  22. make OPENCL -j8