summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorslaren <slarengh@gmail.com>2024-02-15 16:49:01 +0100
committerGitHub <noreply@github.com>2024-02-15 16:49:01 +0100
commit9060a1e9dfca6038906e819be5fa42217f49028c (patch)
treedce8ed5558294d6828c4aa2343ec78a37a510147
parent9350a1cf21b1492c69b20175b73a419b897d6a3a (diff)
cuda : print message when initialization fails (#5512)
* cuda : print message when initialization fails * use CUDA_NAME both times
-rw-r--r--ggml-cuda.cu1
1 files changed, 1 insertions, 0 deletions
diff --git a/ggml-cuda.cu b/ggml-cuda.cu
index 96976f24..b35fcb7f 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, " GGML_CUDA_NAME " will be disabled\n", __func__);
return;
}