diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/hipcub/find-hip-cuda-rocm-5.3.patch')
-rw-r--r-- | var/spack/repos/builtin/packages/hipcub/find-hip-cuda-rocm-5.3.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hipcub/find-hip-cuda-rocm-5.3.patch b/var/spack/repos/builtin/packages/hipcub/find-hip-cuda-rocm-5.3.patch new file mode 100644 index 0000000000..184289bd2c --- /dev/null +++ b/var/spack/repos/builtin/packages/hipcub/find-hip-cuda-rocm-5.3.patch @@ -0,0 +1,13 @@ +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() |