]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
cuda : print message when initialization fails (llama/5512)
authorslaren <redacted>
Thu, 15 Feb 2024 15:49:01 +0000 (16:49 +0100)
committerGeorgi Gerganov <redacted>
Mon, 19 Feb 2024 13:53:23 +0000 (15:53 +0200)
* cuda : print message when initialization fails

* use CUDA_NAME both times

ggml-cuda.cu

index 96976f2487294d974b66a780ded82f2b8af58126..b35fcb7fdb5d2aa516ebad87e197e5a43225fea6 100644 (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;
         }