check for openmp build before trying to run the executable. give error if not found
@@ -128,6 +128,11 @@ if [ -d build_${BUILD_SUFFIX} ] && [ "$2" != "build" ]; then
if [ "$1" == "hip" ]; then
build_${BUILD_SUFFIX}/bin/raja-perf.exe --show-progress --refvar Base_HIP
elif [ "$1" == "openmp" ] ; then
+ if [ ! -f build_${BUILD_SUFFIX}/bin/raja-perf-omptarget.exe ] ; then
+ echo "ERROR file build_${BUILD_SUFFIX}/bin/raja-perf-omptarget.exe not found"
+ echo " please build raja first"
+ exit 1
+ fi
build_${BUILD_SUFFIX}/bin/raja-perf-omptarget.exe --show-progress --refvar Base_OMPTarget
fi
elif [ "$2" == "unit" ]; then
