Skip to content

Commit d6a6c88

Browse files
slarenhodlen
authored andcommitted
cuda : print message when initialization fails (ggml-org#5512)
* cuda : print message when initialization fails * use CUDA_NAME both times
1 parent d4d4722 commit d6a6c88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ggml-cuda.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7943,6 +7943,7 @@ GGML_CALL void ggml_init_cublas() {
79437943
if (cudaGetDeviceCount(&g_device_count) != cudaSuccess) {
79447944
initialized = true;
79457945
g_cublas_loaded = false;
7946+
fprintf(stderr, "%s: no " GGML_CUDA_NAME " devices found, " GGML_CUDA_NAME " will be disabled\n", __func__);
79467947
return;
79477948
}
79487949

0 commit comments

Comments
 (0)