File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
Original file line number Diff line number Diff line change @@ -1067,21 +1067,9 @@ elseif(USE_CUDA)
1067
1067
torch_cuda
1068
1068
)
1069
1069
if ($ENV{ATEN_STATIC_CUDA} )
1070
- if (CUDAToolkit_VERSION_MAJOR LESS_EQUAL 11)
1071
- target_link_libraries (torch_cuda_linalg PRIVATE
1072
- CUDA::cusolver_static
1073
- ${CUDAToolkit_LIBRARY_DIR} /liblapack_static.a # needed for libcusolver_static
1074
- )
1075
- elseif (CUDAToolkit_VERSION_MAJOR GREATER_EQUAL 12)
1076
- target_link_libraries (torch_cuda_linalg PRIVATE
1077
- CUDA::cusolver_static
1078
- ${CUDAToolkit_LIBRARY_DIR} /libcusolver_lapack_static.a # needed for libcusolver_static
1079
- )
1080
- endif ()
1070
+ target_link_libraries (torch_cuda_linalg PRIVATE CUDA::cusolver_static)
1081
1071
else ()
1082
- target_link_libraries (torch_cuda_linalg PRIVATE
1083
- CUDA::cusolver
1084
- )
1072
+ target_link_libraries (torch_cuda_linalg PRIVATE CUDA::cusolver)
1085
1073
endif ()
1086
1074
set_source_files_properties (${CMAKE_CURRENT_SOURCE_DIR} /../aten/src/ATen/native/cuda/LinearAlgebraStubs.cpp PROPERTIES COMPILE_FLAGS "-DBUILD_LAZY_CUDA_LINALG" )
1087
1075
install (TARGETS torch_cuda_linalg DESTINATION "${TORCH_INSTALL_LIB_DIR} " )
You can’t perform that action at this time.
0 commit comments