From: slaren Date: Thu, 15 Feb 2024 15:49:01 +0000 (+0100) Subject: cuda : print message when initialization fails (llama/5512) X-Git-Tag: upstream/0.0.1642~954 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=b88b0203118b3520880fb900ac34dea6f6a67ba9;p=pkg%2Fggml%2Fsources%2Fggml cuda : print message when initialization fails (llama/5512) * cuda : print message when initialization fails * use CUDA_NAME both times --- diff --git a/src/ggml-cuda.cu b/src/ggml-cuda.cu index 96976f24..b35fcb7f 100644 --- a/src/ggml-cuda.cu +++ b/src/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, " GGML_CUDA_NAME " will be disabled\n", __func__); return; }