Lines Matching full:streams
97 cl_mem streams[3]; in test_step() local
112 streams[0] = clCreateBuffer(context, CL_MEM_READ_WRITE, in test_step()
114 if (!streams[0]) in test_step()
119 streams[1] = clCreateBuffer(context, CL_MEM_READ_WRITE, in test_step()
121 if (!streams[1]) in test_step()
126 streams[2] = clCreateBuffer(context, CL_MEM_READ_WRITE, in test_step()
128 if (!streams[2]) in test_step()
147 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_float)*num_elements, (void *)inp… in test_step()
153 …err = clEnqueueWriteBuffer( queue, streams[1], true, 0, sizeof(cl_float)*num_elements, (void *)inp… in test_step()
179 values[0] = streams[0]; in test_step()
180 values[1] = streams[1]; in test_step()
181 values[2] = streams[2]; in test_step()
184 err = clSetKernelArg(kernel[i], 0, sizeof streams[0], &streams[0] ); in test_step()
185 err |= clSetKernelArg(kernel[i], 1, sizeof streams[1], &streams[1] ); in test_step()
186 err |= clSetKernelArg(kernel[i], 2, sizeof streams[2], &streams[2] ); in test_step()
204 …err = clEnqueueReadBuffer( queue, streams[2], true, 0, sizeof(cl_float)*num_elements, (void *)outp… in test_step()
266 clReleaseMemObject(streams[0]); in test_step()
267 clReleaseMemObject(streams[1]); in test_step()
268 clReleaseMemObject(streams[2]); in test_step()
364 cl_mem streams[3]; in test_step_double() local
379 streams[0] = clCreateBuffer(context, CL_MEM_READ_WRITE, in test_step_double()
381 if (!streams[0]) in test_step_double()
386 streams[1] = clCreateBuffer(context, CL_MEM_READ_WRITE, in test_step_double()
388 if (!streams[1]) in test_step_double()
393 streams[2] = clCreateBuffer(context, CL_MEM_READ_WRITE, in test_step_double()
395 if (!streams[2]) in test_step_double()
414 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_double)*num_elements, (void *)in… in test_step_double()
420 …err = clEnqueueWriteBuffer( queue, streams[1], true, 0, sizeof(cl_double)*num_elements, (void *)in… in test_step_double()
446 values[0] = streams[0]; in test_step_double()
447 values[1] = streams[1]; in test_step_double()
448 values[2] = streams[2]; in test_step_double()
451 err = clSetKernelArg(kernel[i], 0, sizeof streams[0], &streams[0] ); in test_step_double()
452 err |= clSetKernelArg(kernel[i], 1, sizeof streams[1], &streams[1] ); in test_step_double()
453 err |= clSetKernelArg(kernel[i], 2, sizeof streams[2], &streams[2] ); in test_step_double()
471 …err = clEnqueueReadBuffer( queue, streams[2], true, 0, sizeof(cl_double)*num_elements, (void *)out… in test_step_double()
533 clReleaseMemObject(streams[0]); in test_step_double()
534 clReleaseMemObject(streams[1]); in test_step_double()
535 clReleaseMemObject(streams[2]); in test_step_double()