Skip to content

CUDA: more info when no device code #5088

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

On master, when a CUDA kernel is called without any device code that could be executed an error message about how ggml-cuda was compiled without support is displayed. However, there are situations where the problem is another one. This PR replaces the error message with one simply stating that there is no device code compatible with the CUDA architecture. The error message also includes the line and function where the error is raised, for which CUDA architecture the error occurred, and for which CUDA architectures ggml-cuda.cu was compiled.

For HIP the error message does not include a list of architectures because I'm not aware of any HIP equivalent for __CUDA_ARCH_LIST__.

@JohannesGaessler JohannesGaessler merged commit 9ecdd12 into ggml-org:master Jan 23, 2024
jordankanter pushed a commit to jordankanter/llama.cpp that referenced this pull request Feb 3, 2024
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 1, 2024
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.

2 participants