Apply absl cuda warning patch to othe OS#27126
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request aims to fix CUDA compilation errors on Linux by applying the absl_cuda_warnings.patch to non-Windows platforms. The issue occurs when CUDA code includes abseil headers, causing nvcc to fail with integer conversion errors in abseil's hash implementation.
Changes:
- Modified the patch application logic to apply
absl_cuda_warnings.patchon all platforms (previously only applied on Windows along withabsl_windows.patch) - Windows continues to apply both
absl_windows.patchandabsl_cuda_warnings.patch - Non-Windows platforms now apply only
absl_cuda_warnings.patch
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@titaiwangms I've opened a new pull request, #27127, to work on those changes. Once the pull request is ready, I'll request review from you. |
xiaofeihan1
left a comment
There was a problem hiding this comment.
I didn’t notice before that Linux would also fail. Thanks for this fix!
|
Merging this The CI failure is expected and also found in other PRs: https://github.com/microsoft/onnxruntime/actions/runs/21343213695/job/61427955613?pr=27145 |
Fix microsoft#27125 It does fix the build issue on Linux, but I am not entirely sure whether this is the optimal fix.
Fix #27125 It does fix the build issue on Linux, but I am not entirely sure whether this is the optimal fix.
This cherry-picks the following commits for the 1.24.2 release: - #27096 - #27077 - #26677 - #27238 - #27213 - #27256 - #27278 - #27275 - #27276 - #27216 - #27271 - #27299 - #27294 - #27266 - #27176 - #27126 - #27252 --------- Co-authored-by: Xiaofei Han <[email protected]> Co-authored-by: Jiajia Qin <[email protected]> Co-authored-by: Yulong Wang <[email protected]> Co-authored-by: qti-monumeen <[email protected]> Co-authored-by: Ankit Maheshkar <[email protected]> Co-authored-by: Eric Crawford <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: guschmue <[email protected]> Co-authored-by: Guenther Schmuelling <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: angelser <[email protected]> Co-authored-by: Angela Serrano Brummett <[email protected]> Co-authored-by: Misha Chornyi <[email protected]> Co-authored-by: hariharans29 <[email protected]> Co-authored-by: eserscor <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: Baiju Meswani <[email protected]> Co-authored-by: Adrian Lizarraga <[email protected]> Co-authored-by: Ti-Tai Wang <[email protected]> Co-authored-by: bmehta001 <[email protected]>
Fix #27125
It does fix the build issue on Linux, but I am not entirely sure whether this is the optimal fix.