mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-21 14:59:02 +00:00
Migrate events suite to the new test registration framework (#2324)
Contributes to #2181. Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
This commit is contained in:
@@ -30,8 +30,7 @@ void trigger_user_event(cl_event *event)
|
||||
clSetUserEventStatus(*event, CL_COMPLETE);
|
||||
}
|
||||
|
||||
int test_userevents_multithreaded(cl_device_id deviceID, cl_context context,
|
||||
cl_command_queue queue, int num_elements)
|
||||
REGISTER_TEST(userevents_multithreaded)
|
||||
{
|
||||
cl_int error;
|
||||
|
||||
@@ -50,7 +49,7 @@ int test_userevents_multithreaded(cl_device_id deviceID, cl_context context,
|
||||
|
||||
for (int i = 0; actions[i] != NULL; i++)
|
||||
{
|
||||
error = actions[i]->Setup(deviceID, context, queue);
|
||||
error = actions[i]->Setup(device, context, queue);
|
||||
test_error(error, "Unable to set up test action");
|
||||
|
||||
error = actions[i]->Execute(queue, 1, &gateEvent, &actionEvents[i]);
|
||||
|
||||
Reference in New Issue
Block a user