
Unless the amdgpu_target is overriden, the libraries will default to being built for cuda, since amdgpu_target=none is both default and in conflict with +rocm. This requires a custom Disjoint set to include both the 'auto' variant used by the rocm mathlibs and the 'none' variant used by ROCmPackage. * Fix search for hip+cuda in hipcub@5.1 and later This patch is not strictly necessary, but it may fix the search for HIP in certain environments. * Backport fix for CUDA 11.5 to hipsparse
14 lines
508 B
Diff
14 lines
508 B
Diff
diff --git a/cmake/VerifyCompiler.cmake b/cmake/VerifyCompiler.cmake
|
|
index 846072f..281ccdc 100644
|
|
--- a/cmake/VerifyCompiler.cmake
|
|
+++ b/cmake/VerifyCompiler.cmake
|
|
@@ -22,8 +22,6 @@
|
|
|
|
list(APPEND CMAKE_PREFIX_PATH /opt/rocm /opt/rocm/hip)
|
|
if(CMAKE_CXX_COMPILER MATCHES ".*nvcc$" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
|
- list(APPEND CMAKE_MODULE_PATH /opt/rocm/hip/cmake)
|
|
- find_package(hip QUIET CONFIG PATHS /opt/rocm)
|
|
if(NOT hip_FOUND)
|
|
find_package(HIP REQUIRED)
|
|
endif()
|