File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -309,13 +309,17 @@ static ggml_backend_opencl_context * ggml_cl2_init(ggml_backend_dev_t dev) {
309309 unsigned n_devices = 0 ;
310310 struct cl_device * default_device = NULL ;
311311
312+ GGML_LOG_INFO (" ggml_opencl: getting opencl platform IDs...\n " );
313+
312314 cl_platform_id platform_ids[NPLAT];
313315 auto clGetPlatformIDResult = clGetPlatformIDs (NPLAT, platform_ids, &n_platforms);
314316 if (clGetPlatformIDResult != CL_SUCCESS) {
315- GGML_LOG_ERROR (" ggml_opencl: plaform IDs not available.\n " );
317+ GGML_LOG_ERROR (" ggml_opencl: platform IDs not available: %d .\n " , clGetPlatformIDResult );
316318 return backend_ctx;
317319 }
318320
321+ GGML_LOG_INFO (" ggml_opencl: found %d platforms" , n_platforms);
322+
319323 for (unsigned i = 0 ; i < n_platforms; i++) {
320324 struct cl_platform * p = &platforms[i];
321325 p->number = i;
You can’t perform that action at this time.
0 commit comments