Repository navigation
pathfinder: add cudart_static to the supported static libraries - #3234
srimanachanta wants to merge 3 commits into
Conversation
libcudart_static.a and cudart_static.lib ship next to cudadevrt in the wheel, conda and CTK layouts, so both use the same search paths.
|
No actionable comments were generated in the recent review. Summary
Change: Feature Merge Risk:
|
|
/ok to test beecaac |
|
Summary
Add
"cudart_static"toSUPPORTED_STATIC_LIBS, solocate_static_lib("cudart_static")andfind_static_lib("cudart_static")findlibcudart_static.a/cudart_static.lib. Today the tuple is only("cudadevrt",).Motivation
Linking the static CUDA runtime lets one extension module work with different CUDA runtimes in the same major. In a CUDA 12 build of a downstream extension library, one
.solinked againstcudart_staticworked in both cuda12 and cuda13 environments (cupy). Today the path has to be passed by hand (-DCUDA_CUDART=<path to libcudart_static.a>).Change
cudart_staticships next tocudadevrtin every layout pathfinder searches, so_cudadevrt_info()becomes_cuda_runtime_static_lib_info(stem)and both entries use it. I checked the layouts directly:nvidia/cu13/lib/nvidia/cuda_runtime/lib/nvidia/cu13/lib/x64/nvidia/cuda_runtime/lib/x64/cuda-cudart-staticlib/lib64/Tests
cudart_staticuses the same search directories ascudadevrton Linux and Windows, and is found in site-packages.site-packages) and a system CTK (CUDA_PATH).