mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 15:59:03 +00:00
Remove dead code from test_userevents (#476)
This code probably predates the move to the test framework and is no longer useful. Signed-off-by: Kévin Petit <kpet@free.fr>
This commit is contained in:
@@ -260,32 +260,3 @@ int test_userevents( cl_device_id deviceID, cl_context context, cl_command_queue
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
|
||||||
int main(int argc, char** argv)
|
|
||||||
{
|
|
||||||
|
|
||||||
cl_int err;
|
|
||||||
|
|
||||||
test_start();
|
|
||||||
|
|
||||||
cl_device_type device_type;
|
|
||||||
CL_DEVICE_TYPE_ENV( device_type );
|
|
||||||
|
|
||||||
cl_device_id device_id;
|
|
||||||
CL_EXIT_ERROR(clGetDeviceIDs(NULL, device_type, 1, &device_id, NULL),"GetDeviceIDs");
|
|
||||||
|
|
||||||
// Create a context.
|
|
||||||
cl_context context = clCreateContext(0, 1, &device_id, NULL, NULL, &err);
|
|
||||||
CL_EXIT_ERROR(err,"CreateContext");
|
|
||||||
|
|
||||||
// Create a command queue.
|
|
||||||
q = clCreateCommandQueue(context,device_id,0,&err);
|
|
||||||
CL_EXIT_ERROR(err,"clCreateCommandQueue failed");
|
|
||||||
|
|
||||||
int ret = test_userevents( device_type, context, queue, 0 );
|
|
||||||
|
|
||||||
test_finish();
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|||||||
Reference in New Issue
Block a user