[ROCm][Windows] Fix rocsolver undefined symbol error (#156591)

Fix undefined symbol error while using `rocsolver_ssyevd_strided_batched` call in `aten/src/ATen/native/cuda/linalg/BatchLinearAlgebraLib.cpp`.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156591
Approved by: https://github.com/jeffdaily
This commit is contained in:
tvukovic-amd
2025-06-24 03:28:41 +00:00
committed by PyTorch MergeBot
parent 87d615efab
commit b2d473c8f8
2 changed files with 2 additions and 1 deletions

View File

@ -1069,7 +1069,7 @@ if(USE_ROCM)
# Math libraries
list(APPEND Caffe2_PUBLIC_HIP_DEPENDENCY_LIBS
roc::hipblas roc::rocblas hip::hipfft hip::hiprand roc::hipsparse roc::hipsolver roc::hipblaslt)
roc::hipblas roc::rocblas hip::hipfft hip::hiprand roc::hipsparse roc::hipsolver roc::hipblaslt roc::rocsolver)
# hipsparselt is an optional component that will eventually be enabled by default.
if(hipsparselt_FOUND)
list(APPEND Caffe2_PUBLIC_HIP_DEPENDENCY_LIBS

View File

@ -172,6 +172,7 @@ if(HIP_FOUND)
find_package_and_print_version(hipcub REQUIRED)
find_package_and_print_version(rocthrust REQUIRED)
find_package_and_print_version(hipsolver REQUIRED)
find_package_and_print_version(rocsolver REQUIRED)
# workaround cmake 4 build issue
if(CMAKE_VERSION VERSION_GREATER_EQUAL "4.0.0")
message(WARNING "Work around hiprtc cmake failure for cmake >= 4")