From e4f9d9d848ce5551ab3bffb12dcb75cc15fd87ed Mon Sep 17 00:00:00 2001 From: slaren Date: Thu, 15 Feb 2024 16:30:59 +0100 Subject: [PATCH] cuda : print message when initialization fails --- ggml-cuda.cu | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml-cuda.cu b/ggml-cuda.cu index 96976f248..edbeab898 100644 --- a/ggml-cuda.cu +++ b/ggml-cuda.cu @@ -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, CUDA will be disabled\n", __func__); return; }