Skip to content
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

cuda : print the returned error when CUDA initialization fails #6185

Merged
merged 1 commit into from Mar 20, 2024

Conversation

slaren
Copy link
Collaborator

@slaren slaren commented Mar 20, 2024

cudaGetDeviceCount may return different errors when it fails during CUDA initialization (cudaErrorInitializationError, cudaErrorInsufficientDriver or cudaErrorNoDevice), and printing this error may help diagnose the issue when the CUDA backend is not working.

@slaren slaren merged commit 1c51f98 into master Mar 20, 2024
50 of 55 checks passed
@slaren slaren deleted the sl/cuda-init-error branch March 20, 2024 20:03
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 1, 2024
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 3, 2024
tybalex pushed a commit to tybalex/function.cpp that referenced this pull request Apr 17, 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.

None yet

2 participants