Skip to content

Commit 8d8e64e

Browse files
committed
temporarily remove release kernel
1 parent 5d313cd commit 8d8e64e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/acl_mem.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -511,10 +511,10 @@ CL_API_ENTRY cl_int clEnqueueWriteGlobalVariableINTEL(
511511
if (status != CL_SUCCESS) {
512512
return status;
513513
}
514-
status = clReleaseKernel(kernel);
515-
if (status != CL_SUCCESS) {
516-
return status;
517-
}
514+
// status = clReleaseKernel(kernel);
515+
// if (status != CL_SUCCESS) {
516+
// return status;
517+
// }
518518

519519
return CL_SUCCESS;
520520
}

test/acl_usm_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1294,8 +1294,8 @@ MT_TEST(acl_usm, read_device_global) {
12941294
->image->activation_id;
12951295
acltest_call_kernel_update_callback(activation_id, CL_RUNNING);
12961296
acltest_call_kernel_update_callback(activation_id, CL_COMPLETE);
1297-
CHECK_EQUAL(CL_SUCCESS, clReleaseEvent(copy_event));
12981297
CHECK_EQUAL(CL_SUCCESS, clFinish(m_cq));
1298+
CHECK_EQUAL(CL_SUCCESS, clReleaseEvent(copy_event));
12991299

13001300
// Host pointer example
13011301
free(src_ptr);

0 commit comments

Comments
 (0)