Skip to content

Conversation

@skottmckay
Copy link
Contributor

Description

Fix some issues when building with the latest CUDA and cuDNN versions on Windows.

  • Latest cuDNN install has the CUDA toolkit version in the path.
    • Adjust cmake files to support that.
  • CUDA 13.x drops support for compute capability 6.0 and 7.0.
    • Remove from CMAKE_CUDA_ARCHITECTURES.
  • Remove a LINK_LANGUAGE:CUDA flag for CETCOMPAT
    • Syntax doesn't seem to be supported with MSVC. Build is successful without this (CUDA 13.1, cuDNN 9.17).
      • LINK : warning LNK4044: unrecognized option '/Xlinker=/CETCOMPAT'; ignored [D:\src\github\ort.cuda\build\Windows.CUDA\Debug\onnxruntime_providers_cuda_ut.vcxproj]
  • Memory leak checker fixes
    • onnxruntime_providers_cuda_ut was incorrectly linking against ORT common causing a duplicate symbol when the debug leak checker is enabled (multiple overrides of new and delete.
      • As the CUDA EP is built as a separate library it shouldn't need to link against common.
    • Use the debug alloc/free for provider bridge when leak checker is enabled
    • Ignore EtwEventWriteNoRegistration in leak checker output as we don't control that.

Motivation and Context

@skottmckay skottmckay requested a review from tianleiwu January 17, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants