Skip to content

Conversation

@stotko
Copy link
Owner

@stotko stotko commented Dec 11, 2025

Currently, the shared version of the CUDA runtime library CUDA::cudart is unconditionally linked. However, the static and shared version and incompatible to each other and it is discouraged to link against both. Since CMake implicitly uses the respective variant when linking a target with CUDA sources, building stdgpu as a static library ends up with mixing both, which may cause linker errors especially on Windows. Follow standard CMake behavior and link against the correct variant based on the selected target type.

@stotko stotko added this to the 2.0.0 milestone Dec 11, 2025
@codecov
Copy link

codecov bot commented Dec 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.64%. Comparing base (133f9e2) to head (56443a1).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #469      +/-   ##
==========================================
+ Coverage   96.60%   96.64%   +0.03%     
==========================================
  Files          33       33              
  Lines        2622     2622              
==========================================
+ Hits         2533     2534       +1     
+ Misses         89       88       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@stotko stotko merged commit 42ea5ea into master Dec 12, 2025
80 of 168 checks passed
@stotko stotko deleted the cmake_cudart branch December 12, 2025 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants