mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
[NFC] commonfns: Remove unused values arrays (#1595)
The arrays were assigned to, but the values were never used again. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com> Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
884c736525
commit
59a1198e5f
@@ -98,7 +98,6 @@ test_step(cl_device_id device, cl_context context, cl_command_queue queue, int n
|
||||
cl_float *input_ptr[2], *output_ptr, *p;
|
||||
cl_program program[kTotalVecCount];
|
||||
cl_kernel kernel[kTotalVecCount];
|
||||
void *values[3];
|
||||
size_t threads[1];
|
||||
int num_elements;
|
||||
int err;
|
||||
@@ -173,9 +172,6 @@ test_step(cl_device_id device, cl_context context, cl_command_queue queue, int n
|
||||
&step3_kernel_code, "test_step3");
|
||||
if (err) return -1;
|
||||
|
||||
values[0] = streams[0];
|
||||
values[1] = streams[1];
|
||||
values[2] = streams[2];
|
||||
for (i=0; i <kTotalVecCount; i++)
|
||||
{
|
||||
err = clSetKernelArg(kernel[i], 0, sizeof streams[0], &streams[0] );
|
||||
@@ -362,7 +358,6 @@ test_step_double(cl_device_id device, cl_context context, cl_command_queue queue
|
||||
cl_double *input_ptr[2], *output_ptr, *p;
|
||||
cl_program program[kTotalVecCount];
|
||||
cl_kernel kernel[kTotalVecCount];
|
||||
void *values[3];
|
||||
size_t threads[1];
|
||||
int num_elements;
|
||||
int err;
|
||||
@@ -440,9 +435,6 @@ test_step_double(cl_device_id device, cl_context context, cl_command_queue queue
|
||||
if (err)
|
||||
return -1;
|
||||
|
||||
values[0] = streams[0];
|
||||
values[1] = streams[1];
|
||||
values[2] = streams[2];
|
||||
for (i=0; i < kTotalVecCount; i++)
|
||||
{
|
||||
err = clSetKernelArg(kernel[i], 0, sizeof streams[0], &streams[0] );
|
||||
|
||||
Reference in New Issue
Block a user