Skip to content

Commit e45add1

Browse files
committed
use null to indicate optional clean up callback data
1 parent 8a49068 commit e45add1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/acl_mem.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,7 @@ CL_API_ENTRY cl_int clEnqueueWriteGlobalVariableINTEL(
596596
}
597597
callback_data[0] = (void *)(src_dev_ptr);
598598
callback_data[1] = (void *)(kernel);
599+
callback_data[2] = NULL;
599600
clSetEventCallback(*event, CL_COMPLETE, acl_dev_global_cleanup,
600601
(void *)callback_data);
601602
}

0 commit comments

Comments
 (0)