diff --git a/examples/openmp/target/CMakeLists.txt b/examples/openmp/target/CMakeLists.txt index fe98eacb..e43a4c86 100644 --- a/examples/openmp/target/CMakeLists.txt +++ b/examples/openmp/target/CMakeLists.txt @@ -3,6 +3,13 @@ # cmake_minimum_required(VERSION 3.21.0 FATAL_ERROR) +find_package(hip 5.6) + +if(NOT hip_FOUND) + message(WARNING "ROCm >= 5.6 not found. Skipping this example.") + return() +endif() + if(NOT OMP_TARGET_COMPILER) find_program( amdclangpp_EXECUTABLE