Skip to content

Commit

Permalink
Check for HIP versions in min/max range
Browse files Browse the repository at this point in the history
  • Loading branch information
Stewart Martin-Haugh [email protected] committed Nov 27, 2023
1 parent 4c981f0 commit fa210f1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmake/alpakaCommon.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -503,11 +503,7 @@ if(alpaka_ACC_GPU_HIP_ENABLE)
# supported HIP version range
set(_alpaka_HIP_MIN_VER 5.0)
set(_alpaka_HIP_MAX_VER 5.5)
find_package(hip "${_alpaka_HIP_MAX_VER}")
if(NOT TARGET hip)
message(STATUS "Could not find HIP v${_alpaka_HIP_MAX_VER}. Now searching for HIP v${_alpaka_HIP_MIN_VER}")
find_package(hip "${_alpaka_HIP_MIN_VER}")
endif()
find_package(hip "${_alpaka_HIP_MIN_VER}...<${_alpaka_HIP_MAX_VER}")

if(NOT TARGET hip)
message(FATAL_ERROR "Optional alpaka dependency HIP could not be found!")
Expand Down

0 comments on commit fa210f1

Please sign in to comment.