Commit 7778e2e
authored
fix(cmake): improve CUDA C++ standard for compatibility with gcc-14 (#5036)
NVCC compilation errors with gcc-14 and C++11.
Cases in other repos:
https://gitlab.archlinux.org/archlinux/packaging/packages/cuda/-/issues/12
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Improved GPU build configuration to better support newer compiler
versions (GCC/Clang 14+) and preserve user-specified C++ standards
during compilation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@ustc.edu.cn>1 parent e335e3d commit 7778e2e
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
46 | 52 | | |
47 | 53 | | |
48 | | - | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
0 commit comments