spack/var/spack/repos/builtin/packages/hipcub/find-hip-cuda-rocm-5.1.patch
Cory Bloor cfea2d1010
hip: mathlibs inherit CudaPackage and ROCmPackage (#34586)
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
2023-04-03 20:28:24 +02:00

14 lines
509 B
Diff

diff --git a/cmake/VerifyCompiler.cmake b/cmake/VerifyCompiler.cmake
index ca4d646..0256683 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()