From 28bee27253ebd06e427ce75c6154e44c09458e37 Mon Sep 17 00:00:00 2001 From: David Galiffi Date: Wed, 11 Jun 2025 16:00:48 -0400 Subject: [PATCH] Fix OpenMP-Target ctest (#241) Test is missing from rocm-7.0 stack because of a HIP version check. In these builds, hip_version.h is still reporting 6.5.0. This check was originally put in to skip the test on older versions of ROCm, which should no longer be required - For SWDEV-537718 Signed-off-by: David Galiffi --- examples/openmp/target/CMakeLists.txt | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/examples/openmp/target/CMakeLists.txt b/examples/openmp/target/CMakeLists.txt index 9ac37181a0..3bb695a0df 100644 --- a/examples/openmp/target/CMakeLists.txt +++ b/examples/openmp/target/CMakeLists.txt @@ -1,26 +1,5 @@ -# -# -# cmake_minimum_required(VERSION 3.18.4 FATAL_ERROR) -# try to find a compatible HIP version -if(ROCmVersion_MAJOR_VERSION AND ROCmVersion_MAJOR_VERSION GREATER_EQUAL 6) - find_package(hip ${ROCmVersion_MAJOR_VERSION}.0.0) -else() - find_package(hip) -endif() - -if(NOT hip_FOUND) - message(WARNING "ROCm >= 5.6 not found. Skipping OpenMP target example.") - return() -elseif(hip_FOUND AND hip_VERSION VERSION_LESS 5.6.0) - message( - WARNING - "ROCm >= 5.6 not found (found ${hip_VERSION}). Skipping OpenMP target example." - ) - return() -endif() - if(NOT OMP_TARGET_COMPILER) find_program( amdclangpp_EXECUTABLE