← 返回首页
Update version numbers for CUDA libraries to be collected by christophe-murphy · Pull Request #3645 · arrayfire/arrayfire · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus
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. Retry
Loading
Jump to
Jump to file
Failed to load files. Retry
Loading
Diff view
Unified
Split
Hide whitespace
Apply and reload
Show whitespace
Diff view
Unified
Split
Hide whitespace
Apply and reload
20 changes: 15 additions & 5 deletions src/backend/cuda/CMakeLists.txt
Show comments View file Edit file Delete file Open in desktop
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 @@ -50,7 +50,7 @@ set(CUDA_architecture_build_targets "Auto" CACHE

find_cuda_helper_libs(nvrtc)
find_cuda_helper_libs(nvrtc-builtins)
list(APPEND nvrtc_libs ${CUDA_nvrtc_LIBRARY})
list(APPEND nvrtc_libs ${CUDA_nvrtc_LIBRARY} ${CUDA_nvrtc-builtins_LIBRARY})

if(UNIX AND AF_WITH_STATIC_CUDA_NUMERIC_LIBS)
# The libraries that may be staticly linked or may be loaded at runtime
Expand Down Expand Up @@ -849,7 +849,9 @@ if(AF_INSTALL_STANDALONE)
endif()

if(WIN32 OR NOT AF_WITH_STATIC_CUDA_NUMERIC_LIBS)
if(CUDA_VERSION_MAJOR VERSION_EQUAL 11)
if(CUDA_VERSION_MAJOR VERSION_EQUAL 12)
afcu_collect_libs(cufft LIB_MAJOR 11 LIB_MINOR 3)
elseif(CUDA_VERSION_MAJOR VERSION_EQUAL 11)
afcu_collect_libs(cufft LIB_MAJOR 10 LIB_MINOR 4)
else()
afcu_collect_libs(cufft)
Expand All @@ -858,17 +860,25 @@ if(AF_INSTALL_STANDALONE)
if(CUDA_VERSION VERSION_GREATER 10.0)
afcu_collect_libs(cublasLt)
endif()
afcu_collect_libs(cusolver)
if(CUDA_VERSION_MAJOR VERSION_EQUAL 12)
afcu_collect_libs(cusolver LIB_MAJOR 11 LIB_MINOR 7)
else()
afcu_collect_libs(cusolver)
endif()
afcu_collect_libs(cusparse)
if(CUDA_VERSION VERSION_GREATER 12.0)
afcu_collect_libs(nvJitLink)
endif()
elseif(NOT ${use_static_cuda_lapack})
afcu_collect_libs(cusolver)
if(CUDA_VERSION_MAJOR VERSION_EQUAL 12)
afcu_collect_libs(cusolver LIB_MAJOR 11 LIB_MINOR 7)
else()
afcu_collect_libs(cusolver)
endif()
endif()

if(WIN32 OR CUDA_VERSION VERSION_LESS 11.5 OR NOT AF_WITH_STATIC_CUDA_NUMERIC_LIBS)
afcu_collect_libs(nvrtc FULL_VERSION)
afcu_collect_libs(nvrtc)
if(CUDA_VERSION VERSION_GREATER 10.0)
afcu_collect_libs(nvrtc-builtins FULL_VERSION)
else()
Expand Down
Toggle all file notes Toggle all file annotations

Footer

© 2026 GitHub, Inc.