Skip to content

CUDA: fix variable name conflict for Windows build #9382

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

JohannesGaessler
Copy link
Collaborator

Fixes #9376 .

The problem is that CUB seems to make use of a Windows library which has a variable called CC_PASCAL which conflicts with the define in common.cuh. Including CUB first should fix the issue.

@EverchangerL
Copy link

Can confirm that this fix worked, thanks

@JohannesGaessler JohannesGaessler merged commit 8e6e2fb into ggml-org:master Sep 9, 2024
51 checks passed
dsx1986 pushed a commit to dsx1986/llama.cpp that referenced this pull request Oct 29, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 15, 2024
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Nvidia GPU Issues specific to Nvidia GPUs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Compilation failure with CUDA support on Windows: 1 error detected in the compilation of ggml-cuda/sum.cu.
3 participants