pytorch - 💡(How to fix) Fix OSS CUDA13 CUDSS missing libs, not properly compiled on releases [1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
pytorch/pytorch#178796Fetched 2026-04-08 01:52:09
View on GitHub
Comments
1
Participants
1
Timeline
98
Reactions
0
Participants
Timeline (top)
subscribed ×60mentioned ×27labeled ×7added_to_project_v2 ×1

Code Example

2026-03-25T21:50:31.4325060Z -- Could NOT find CUDSS (missing: CUDSS_LIBRARY_PATH CUDSS_INCLUDE_PATH) 
2026-03-25T21:50:31.4326491Z CMake Warning at cmake/public/cuda.cmake:251 (message):
2026-03-25T21:50:31.4326860Z   Cannot find CUDSS library.  Turning the option off
2026-03-25T21:50:31.4327132Z Call Stack (most recent call first):
2026-03-25T21:50:31.4327387Z   cmake/Dependencies.cmake:44 (include)
2026-03-25T21:50:31.4327639Z   CMakeLists.txt:935 (include)
2026-03-25T21:50:31.4327784Z 
2026-03-25T21:50:31.4327875Z 
2026-03-25T21:50:31.4328932Z CMake Warning at cmake/public/cuda.cmake:332 (message):
2026-03-25T21:50:31.4329304Z   pytorch is not compatible with `CMAKE_CUDA_ARCHITECTURES` and will ignore
2026-03-25T21:50:31.4329758Z   its value.  Please configure `TORCH_CUDA_ARCH_LIST` instead.
2026-03-25T21:50:31.4330062Z Call Stack (most recent call first):
2026-03-25T21:50:31.4330307Z   cmake/Dependencies.cmake:44 (include)
2026-03-25T21:50:31.4330541Z   CMakeLists.txt:935 (include)
2026-03-25T21:50:31.4330686Z
RAW_BUFFERClick to expand / collapse

🐛 Describe the bug

OSS builds do not link against CUDSS in CUDA13 (and possibley other builds. I am not sure if anything is installed for any recent CUDA library of CUDA12.4 or >`)

2026-03-25T21:50:31.4325060Z -- Could NOT find CUDSS (missing: CUDSS_LIBRARY_PATH CUDSS_INCLUDE_PATH) 
2026-03-25T21:50:31.4326491Z CMake Warning at cmake/public/cuda.cmake:251 (message):
2026-03-25T21:50:31.4326860Z   Cannot find CUDSS library.  Turning the option off
2026-03-25T21:50:31.4327132Z Call Stack (most recent call first):
2026-03-25T21:50:31.4327387Z   cmake/Dependencies.cmake:44 (include)
2026-03-25T21:50:31.4327639Z   CMakeLists.txt:935 (include)
2026-03-25T21:50:31.4327784Z 
2026-03-25T21:50:31.4327875Z 
2026-03-25T21:50:31.4328932Z CMake Warning at cmake/public/cuda.cmake:332 (message):
2026-03-25T21:50:31.4329304Z   pytorch is not compatible with `CMAKE_CUDA_ARCHITECTURES` and will ignore
2026-03-25T21:50:31.4329758Z   its value.  Please configure `TORCH_CUDA_ARCH_LIST` instead.
2026-03-25T21:50:31.4330062Z Call Stack (most recent call first):
2026-03-25T21:50:31.4330307Z   cmake/Dependencies.cmake:44 (include)
2026-03-25T21:50:31.4330541Z   CMakeLists.txt:935 (include)
2026-03-25T21:50:31.4330686Z

https://hud.pytorch.org/pr/pytorch/pytorch/178408#68615800388

We should install CUDSS so the OSS are fully featureful. We should also ideally dynamically link against them using the pypi wheels to at some point.

Versions

https://hud.pytorch.org/pr/pytorch/pytorch/178408#68615800388

cc @seemethere @malfet @atalman @tinglvv @nWEIdia @ptrblck @msaroufim @eqy @jerryzh168 @pytorch/pytorch-dev-infra

extent analysis

Fix Plan

To fix the issue of OSS builds not linking against CUDSS in CUDA13, we need to install CUDSS and configure the build to link against it. Here are the steps:

  • Install CUDSS:
    • Download the CUDSS library from the official NVIDIA website.
    • Follow the installation instructions to install the library on your system.
  • Configure the build to link against CUDSS:
    • Set the CUDSS_LIBRARY_PATH and CUDSS_INCLUDE_PATH environment variables to point to the installed CUDSS library and include files.
    • Update the CMakeLists.txt file to include the CUDSS library in the build.

Example code snippet to update CMakeLists.txt:

find_package(CUDSS REQUIRED)

add_library(${PROJECT_NAME} ${SOURCES})
target_link_libraries(${PROJECT_NAME} ${CUDSS_LIBRARY})
target_include_directories(${PROJECT_NAME} PUBLIC ${CUDSS_INCLUDE_DIR})
  • To dynamically link against CUDSS using pypi wheels, you can use the following code snippet:
import torch

# Install the CUDSS wheel
torch.utils.install_cudss()

# Verify that CUDSS is installed and linked correctly
print(torch.cuda.get_device_name(0))

Verification

To verify that the fix worked, you can check the build logs to ensure that the CUDSS library is being linked correctly. You can also run the following command to verify that the CUDSS library is installed and linked correctly:

cmake --build .

If the build is successful, you should see the CUDSS library being linked against the OSS build.

Extra Tips

  • Make sure to install the correct version of CUDSS that matches your CUDA version.
  • If you are using a virtual environment, make sure to activate it before installing CUDSS.
  • You can also use the torch.utils.install_cudss() function to install CUDSS programmatically.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING