From 17a55846d279b1dc4a6919a37db46911fd381567 Mon Sep 17 00:00:00 2001 From: David Galiffi Date: Tue, 29 Oct 2024 20:07:49 -0400 Subject: [PATCH] Skip the OMP Target example for ROCm < 5.6 --- examples/openmp/target/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) 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