Fix CUDA 12.8+ build issues with regards to fp4 type - #26061
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes build breaks in CUDA 12.8+ Linux builds by adding #include <cuda.h> to two CUDA-specific header files before other CUDA headers are included.
- Adds cuda.h include with explanatory comment to cuda_type_conversion.h
- Adds cuda.h include with explanatory comment to cuda_common.h
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| onnxruntime/core/providers/cuda/cuda_type_conversion.h | Includes cuda.h to provide CUDA_VERSION before other CUDA headers |
| onnxruntime/core/providers/cuda/cuda_common.h | Includes cuda.h to provide CUDA_VERSION before other CUDA headers |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@hariharans29it works for cuda 13? |
No, CUDA 13 is not tested yet. Sorry for the mis-leading title. This is to fix CUDA 12 builds but specifically 12.8+ when the fp4 type is enabled. |
pipeline still failed. Please take a look.
|
@tianleiwu - The failures don't seem related to this PR.
|
### Description Fix CUDA 12.8+ build issues with regards to fp4 type ### Motivation and Context Fix CUDA 12.8+ build issues with regards to fp4 type --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
### Description Fix CUDA 12.8+ build issues with regards to fp4 type ### Motivation and Context Fix CUDA 12.8+ build issues with regards to fp4 type --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Description
Fix CUDA 12.8+ build issues with regards to fp4 type
Motivation and Context
Fix CUDA 12.8+ build issues with regards to fp4 type