mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-05-17 14:41:10 +02:00
opencl : fix profile-related errors (llama/12095)
Co-authored-by: ubuntu <ubuntu@localhost.localdomain>
This commit is contained in:
parent
8dcadf736b
commit
bc8cb97e02
@ -278,7 +278,7 @@ static ggml_backend_opencl_context * ggml_cl2_init(ggml_backend_dev_t dev) {
|
|||||||
|
|
||||||
cl_int err;
|
cl_int err;
|
||||||
|
|
||||||
#ifdef GGML_PROFILE_OPENCL
|
#ifdef GGML_OPENCL_PROFILING
|
||||||
GGML_LOG_INFO("ggml_opencl: OpenCL profiling enabled\n");
|
GGML_LOG_INFO("ggml_opencl: OpenCL profiling enabled\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -3023,6 +3023,7 @@ static void ggml_cl_mul_mat(ggml_backend_t backend, const ggml_tensor * src0, co
|
|||||||
// enqueue kernel with profiling
|
// enqueue kernel with profiling
|
||||||
// <--------------------------------------------> //
|
// <--------------------------------------------> //
|
||||||
#ifdef GGML_OPENCL_PROFILING
|
#ifdef GGML_OPENCL_PROFILING
|
||||||
|
cl_event evt;
|
||||||
CL_CHECK(clEnqueueNDRangeKernel(queue, kernel, 3, NULL, global_work_size, local_work_size, 0, NULL, &evt));
|
CL_CHECK(clEnqueueNDRangeKernel(queue, kernel, 3, NULL, global_work_size, local_work_size, 0, NULL, &evt));
|
||||||
|
|
||||||
g_profiling_info.emplace_back();
|
g_profiling_info.emplace_back();
|
||||||
|
Loading…
Reference in New Issue
Block a user