You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix some issues when building with the latest CUDA and cuDNN versions (#27049)
### Description
<!-- Describe your changes. -->
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
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
0 commit comments