Lines Matching full:streams

112     cl_mem streams[6];  in test_writeimage()  local
162streams[0] = clCreateImage2D(context, CL_MEM_READ_WRITE, &img_format, img_width, img_height, 0, NU… in test_writeimage()
163 if (!streams[0]) in test_writeimage()
172streams[1] = create_image_2d(context, CL_MEM_READ_WRITE, &img_format, img_width, img_height, 0, NU… in test_writeimage()
173 if (!streams[1]) in test_writeimage()
183streams[2] = clCreateImage2D(context, CL_MEM_WRITE_ONLY, &img_format, img_width, img_height, 0, NU… in test_writeimage()
184 if (!streams[2]) in test_writeimage()
193streams[3] = create_image_2d(context, CL_MEM_WRITE_ONLY, &img_format, img_width, img_height, 0, NU… in test_writeimage()
194 if (!streams[3]) in test_writeimage()
200 streams[4] = clCreateBuffer(context, CL_MEM_READ_WRITE, length, NULL, NULL); in test_writeimage()
201 if (!streams[4]) in test_writeimage()
206 streams[5] = clCreateBuffer(context, CL_MEM_READ_WRITE, length, NULL, NULL); in test_writeimage()
207 if (!streams[5]) in test_writeimage()
213 err = clEnqueueWriteBuffer(queue, streams[4], CL_TRUE, 0, length, input_ptr[0], 0, NULL, NULL); in test_writeimage()
219 err = clEnqueueWriteBuffer(queue, streams[5], CL_TRUE, 0, length, input_ptr[1], 0, NULL, NULL); in test_writeimage()
252 err = clSetKernelArg(kernel[0], 0, sizeof streams[4], &streams[4]); in test_writeimage()
253 err |= clSetKernelArg(kernel[0], 1, sizeof streams[0], &streams[0]); in test_writeimage()
261 err = clSetKernelArg(kernel[1], 0, sizeof streams[5], &streams[5]); in test_writeimage()
262 err |= clSetKernelArg(kernel[1], 1, sizeof streams[1], &streams[1]); in test_writeimage()
271 err = clSetKernelArg(kernel[2], 0, sizeof streams[4], &streams[4]); in test_writeimage()
272 err |= clSetKernelArg(kernel[2], 1, sizeof streams[2], &streams[2]); in test_writeimage()
280 err = clSetKernelArg(kernel[3], 0, sizeof streams[5], &streams[5]); in test_writeimage()
281 err |= clSetKernelArg(kernel[3], 1, sizeof streams[3], &streams[3]); in test_writeimage()
303 …err = clEnqueueReadImage(queue, streams[i], CL_TRUE, origin, region, 0, 0, output_ptr, 0, NULL, NU… in test_writeimage()
330 clReleaseMemObject(streams[0]); in test_writeimage()
332 clReleaseMemObject(streams[1]); in test_writeimage()
335 clReleaseMemObject(streams[2]); in test_writeimage()
337 clReleaseMemObject(streams[3]); in test_writeimage()
338 clReleaseMemObject(streams[4]); in test_writeimage()
339 clReleaseMemObject(streams[5]); in test_writeimage()