cuda : print message when initialization fails
This commit is contained in:
parent
9350a1cf21
commit
e4f9d9d848
1 changed files with 1 additions and 0 deletions
|
@ -7943,6 +7943,7 @@ GGML_CALL void ggml_init_cublas() {
|
||||||
if (cudaGetDeviceCount(&g_device_count) != cudaSuccess) {
|
if (cudaGetDeviceCount(&g_device_count) != cudaSuccess) {
|
||||||
initialized = true;
|
initialized = true;
|
||||||
g_cublas_loaded = false;
|
g_cublas_loaded = false;
|
||||||
|
fprintf(stderr, "%s: no " GGML_CUDA_NAME " devices found, CUDA will be disabled\n", __func__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue