Skip to content

Commit

Permalink
Relax hipSYCL version constraint for forwards-compatibility with Adap…
Browse files Browse the repository at this point in the history
…tiveCpp
  • Loading branch information
fknorr committed Oct 10, 2023
1 parent 65dc256 commit fee95bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ if(CXX_COMPILER_IS_DPCPP)
endif()

# Find SYCL implementation.
set(hipSYCL_MIN_VERSION "0.9.1")
if(CELERITY_SYCL_IMPL STREQUAL "hipSYCL")
find_package(hipSYCL ${hipSYCL_MIN_VERSION} CONFIG REQUIRED)
find_package(hipSYCL CONFIG REQUIRED)
elseif(CELERITY_SYCL_IMPL STREQUAL "DPC++")
if(NOT CXX_COMPILER_IS_DPCPP)
message(FATAL_ERROR "CELERITY_SYCL_IMPL set to DPC++, but CXX compiler at ${CMAKE_CXX_COMPILER} is not DPC++")
Expand All @@ -57,7 +56,7 @@ else()
list(APPEND AVAILABLE_SYCL_IMPLS DPC++)
endif()

find_package(hipSYCL ${hipSYCL_MIN_VERSION} QUIET CONFIG)
find_package(hipSYCL QUIET CONFIG)
if(hipSYCL_FOUND)
message(STATUS "Found hipSYCL: ${hipSYCL_DIR}")
list(APPEND AVAILABLE_SYCL_IMPLS hipSYCL)
Expand Down

0 comments on commit fee95bc

Please sign in to comment.