Add cmake message if not hipifying due to version

This commit is contained in:
Tobias Meyer Andersen 2024-05-08 14:28:44 +02:00
parent 69a45b632e
commit 60359268fd

View File

@ -46,6 +46,8 @@ if (CONVERT_CUDA_TO_HIP AND CMAKE_VERSION VERSION_GREATER_EQUAL "3.21")
find_package(hipsparse REQUIRED)
find_package(hipblas REQUIRED)
link_libraries(roc::hipblas roc::hipsparse)
elseif(CONVERT_CUDA_TO_HIP)
message("To generate HIP code for AMD GPUs run CMake with version >= 3.21")
endif()
# The following was copied from CMakeLists.txt in opm-common.