Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5ff29df

Browse filesBrowse files
committed
Remove CUDA 11 branches
1 parent 94c054d commit 5ff29df
Copy full SHA for 5ff29df

File tree

Expand file treeCollapse file tree

1 file changed

+2
-14
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-14
lines changed

‎caffe2/CMakeLists.txt

Copy file name to clipboardExpand all lines: caffe2/CMakeLists.txt
+2-14Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,21 +1067,9 @@ elseif(USE_CUDA)
10671067
torch_cuda
10681068
)
10691069
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)
10811071
else()
1082-
target_link_libraries(torch_cuda_linalg PRIVATE
1083-
CUDA::cusolver
1084-
)
1072+
target_link_libraries(torch_cuda_linalg PRIVATE CUDA::cusolver)
10851073
endif()
10861074
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/../aten/src/ATen/native/cuda/LinearAlgebraStubs.cpp PROPERTIES COMPILE_FLAGS "-DBUILD_LAZY_CUDA_LINALG")
10871075
install(TARGETS torch_cuda_linalg DESTINATION "${TORCH_INSTALL_LIB_DIR}")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.