Skip to content

fix(build): pin CUDA host compiler to GCC ≤ 15 on Linux#57

Open
Husky110 wants to merge 1 commit into
LettuceAI:mainfrom
Husky110:fix/cuda-gcc16-host-compiler
Open

fix(build): pin CUDA host compiler to GCC ≤ 15 on Linux#57
Husky110 wants to merge 1 commit into
LettuceAI:mainfrom
Husky110:fix/cuda-gcc16-host-compiler

Conversation

@Husky110
Copy link
Copy Markdown
Contributor

@Husky110 Husky110 commented Jun 4, 2026

CUDA 13.1's cudafe++ cannot parse GCC 16's C++20 standard library headers (char8_t, requires-expressions). The build script now auto- detects the newest available GCC ≤ 15 and sets CMAKE_CUDA_HOST_COMPILER and CUDAHOSTCXX accordingly, falling back gracefully with a warning if none is found.

Requires gcc15 on Arch: sudo pacman -S gcc15

CUDA 13.1's cudafe++ cannot parse GCC 16's C++20 standard library
headers (char8_t, requires-expressions). The build script now auto-
detects the newest available GCC ≤ 15 and sets CMAKE_CUDA_HOST_COMPILER
and CUDAHOSTCXX accordingly, falling back gracefully with a warning if
none is found.

Requires gcc15 on Arch: sudo pacman -S gcc15
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.

1 participant