cuda : print message when initialization fails (llama/5512)

* cuda : print message when initialization fails

* use CUDA_NAME both times
pull/1841/merge
slaren 2024-02-15 16:49:01 +01:00 committed by Georgi Gerganov
parent a38efcb9fd
commit 9f675e021c
No known key found for this signature in database
GPG Key ID: BF970631944C16B7
1 changed files with 1 additions and 0 deletions

View File

@ -7943,6 +7943,7 @@ GGML_CALL void ggml_init_cublas() {
if (cudaGetDeviceCount(&g_device_count) != cudaSuccess) {
initialized = true;
g_cublas_loaded = false;
fprintf(stderr, "%s: no " GGML_CUDA_NAME " devices found, " GGML_CUDA_NAME " will be disabled\n", __func__);
return;
}