FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix for issue 3349: added cmake cuda version check by edwinsolisf · Pull Request #3552 · arrayfire/arrayfire · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .txt  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
7 changes: 6 additions & 1 deletion src/backend/cuda/CMakeLists.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ if(UNIX AND AF_WITH_STATIC_CUDA_NUMERIC_LIBS)
# contains GPU accelerated stedc and bdsqr. The user has to link
# libcusolver_static.a with liblapack_static.a in order to build
# successfully.
af_find_static_cuda_libs(lapack_static)
# Cuda Versions >= 12.0 changed lib name to libcusolver_lapack_static.a
if (CUDA_VERSION VERSION_GREATER_EQUAL 12.0)
af_find_static_cuda_libs(cusolver_lapack_static)
else()
af_find_static_cuda_libs(lapack_static)
endif()

set(af_cuda_static_flags "${af_cuda_static_flags};-lcusolver_static")
else()
Expand Down

Back | FazBrowse Home | New Git URL