Skip to content

Commit

Permalink
Skip the OMP Target example for ROCm < 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dgaliffiAMD committed Oct 30, 2024
1 parent 20e058c commit 17a5584
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/openmp/target/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17a5584

Please sign in to comment.