mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Remove code under USE_LOCAL_THREADS (#850)
Code uses outdated API calls Fixes #715 Change-Id: I575c8ec4003fd30a3cec28ad114d5749f2e83d0f Signed-off-by: Ellen Norris-Thompson <ellen.norris-thompson@arm.com>
This commit is contained in:
@@ -622,25 +622,12 @@ int test_stream_read( cl_device_id device, cl_context context, cl_command_queue
|
||||
cl_event readEvent;
|
||||
cl_ulong queueStart, submitStart, readStart, readEnd;
|
||||
size_t threads[1];
|
||||
#ifdef USE_LOCAL_THREADS
|
||||
size_t localThreads[1];
|
||||
#endif
|
||||
int err, err_count = 0;
|
||||
int i;
|
||||
size_t ptrSizes[5];
|
||||
|
||||
threads[0] = (size_t)num_elements;
|
||||
|
||||
#ifdef USE_LOCAL_THREADS
|
||||
err = clGetDeviceConfigInfo( id, CL_DEVICE_MAX_THREAD_GROUP_SIZE, localThreads, sizeof( cl_uint ), NULL );
|
||||
if( err != CL_SUCCESS ){
|
||||
log_error( "Unable to get thread group max size: %d", err );
|
||||
return -1;
|
||||
}
|
||||
if( localThreads[0] > threads[0] )
|
||||
localThreads[0] = threads[0];
|
||||
#endif
|
||||
|
||||
ptrSizes[0] = size;
|
||||
ptrSizes[1] = ptrSizes[0] << 1;
|
||||
ptrSizes[2] = ptrSizes[1] << 1;
|
||||
@@ -676,11 +663,8 @@ int test_stream_read( cl_device_id device, cl_context context, cl_command_queue
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef USE_LOCAL_THREADS
|
||||
err = clEnqueueNDRangeKernel( queue, kernel[i], 1, NULL, threads, localThreads, 0, NULL, NULL );
|
||||
#else
|
||||
err = clEnqueueNDRangeKernel( queue, kernel[i], 1, NULL, threads, NULL, 0, NULL, NULL );
|
||||
#endif
|
||||
|
||||
if( err != CL_SUCCESS ){
|
||||
print_error( err, "clEnqueueNDRangeKernel failed" );
|
||||
clReleaseKernel( kernel[i] );
|
||||
|
||||
Reference in New Issue
Block a user