diff --git a/ggml-opencl.cpp b/ggml-opencl.cpp index a1818fd15..8b91fc829 100644 --- a/ggml-opencl.cpp +++ b/ggml-opencl.cpp @@ -299,7 +299,7 @@ static cl_program build_program_from_source(cl_context ctx, cl_device_id dev, co program_log = (char*) malloc(log_size + 1); program_log[log_size] = '\0'; clGetProgramBuildInfo(p, dev, CL_PROGRAM_BUILD_LOG, log_size + 1, program_log, NULL); - printf("%s\n", program_log); + fprintf(stderr, "ggml_opencl: kernel compile error:\n\n%s\n", program_log); free(program_log); exit(1); }