mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 00:09:02 +00:00
[NFC] Fix typo (enevt_type -> event_type) (#1498)
Signed-off-by: Stuart Brady <stuart.brady@arm.com>
This commit is contained in:
@@ -55,7 +55,7 @@ commandStatus, void * userData )
|
|||||||
/* use struct as call back para */
|
/* use struct as call back para */
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
cl_int enevt_type;
|
cl_int event_type;
|
||||||
int index;
|
int index;
|
||||||
} CALL_BACK_USER_DATA;
|
} CALL_BACK_USER_DATA;
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@ void CL_CALLBACK single_event_callback_function_flags(cl_event event,
|
|||||||
CALL_BACK_USER_DATA *pdata = static_cast<CALL_BACK_USER_DATA *>(userData);
|
CALL_BACK_USER_DATA *pdata = static_cast<CALL_BACK_USER_DATA *>(userData);
|
||||||
|
|
||||||
log_info("\tEvent callback %d of type %d triggered\n", pdata->index,
|
log_info("\tEvent callback %d of type %d triggered\n", pdata->index,
|
||||||
pdata->enevt_type);
|
pdata->event_type);
|
||||||
sCallbackTriggered_flag[pdata->index] = true;
|
sCallbackTriggered_flag[pdata->index] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ int test_callback_event_single(cl_device_id device, cl_context context,
|
|||||||
CALL_BACK_USER_DATA user_data[EVENT_CALLBACK_TYPE_TOTAL];
|
CALL_BACK_USER_DATA user_data[EVENT_CALLBACK_TYPE_TOTAL];
|
||||||
for (int i = 0; i < EVENT_CALLBACK_TYPE_TOTAL; i++)
|
for (int i = 0; i < EVENT_CALLBACK_TYPE_TOTAL; i++)
|
||||||
{
|
{
|
||||||
user_data[i].enevt_type = event_callback_types[i];
|
user_data[i].event_type = event_callback_types[i];
|
||||||
user_data[i].index = i;
|
user_data[i].index = i;
|
||||||
error = clSetEventCallback(actualEvent, event_callback_types[i],
|
error = clSetEventCallback(actualEvent, event_callback_types[i],
|
||||||
single_event_callback_function_flags,
|
single_event_callback_function_flags,
|
||||||
|
|||||||
Reference in New Issue
Block a user