Skip to content

Apply absl cuda warning patch to othe OS#27126

Merged
titaiwangms merged 3 commits intomainfrom
titaiwang/fix_absl_warning_on_linux_cuda
Jan 26, 2026
Merged

Apply absl cuda warning patch to othe OS#27126
titaiwangms merged 3 commits intomainfrom
titaiwang/fix_absl_warning_on_linux_cuda

Conversation

@titaiwangms
Copy link
Contributor

@titaiwangms titaiwangms commented Jan 23, 2026

Fix #27125

It does fix the build issue on Linux, but I am not entirely sure whether this is the optimal fix.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.patch on all platforms (previously only applied on Windows along with absl_windows.patch)
  • Windows continues to apply both absl_windows.patch and absl_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.

Copy link
Contributor

Copilot AI commented Jan 23, 2026

@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.

Copy link
Contributor

@xiaofeihan1 xiaofeihan1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn’t notice before that Linux would also fail. Thanks for this fix!

@titaiwangms titaiwangms merged commit 0382d8b into main Jan 26, 2026
90 of 92 checks passed
@titaiwangms
Copy link
Contributor Author

@titaiwangms titaiwangms deleted the titaiwang/fix_absl_warning_on_linux_cuda branch January 26, 2026 17:41
milpuz01 pushed a commit to milpuz01/onnxruntime that referenced this pull request Feb 4, 2026
Fix microsoft#27125 

It does fix the build issue on Linux, but I am not entirely sure whether
this is the optimal fix.
tianleiwu pushed a commit that referenced this pull request Feb 12, 2026
Fix #27125 

It does fix the build issue on Linux, but I am not entirely sure whether
this is the optimal fix.
tianleiwu added a commit that referenced this pull request Feb 13, 2026
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]>
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.

[Build] Absl cuda warning on Linux

5 participants