• Home
  • Raw
  • Download

Lines Matching full:streams

73     cl_mem streams[4];  in test_loop()  local
86 streams[0] = clCreateBuffer(context, CL_MEM_READ_WRITE, length, NULL, NULL); in test_loop()
87 if (!streams[0]) in test_loop()
92 streams[1] = clCreateBuffer(context, CL_MEM_READ_WRITE, length, NULL, NULL); in test_loop()
93 if (!streams[1]) in test_loop()
98 streams[2] = clCreateBuffer(context, CL_MEM_READ_WRITE, length, NULL, NULL); in test_loop()
99 if (!streams[2]) in test_loop()
104 streams[3] = clCreateBuffer(context, CL_MEM_READ_WRITE, length, NULL, NULL); in test_loop()
105 if (!streams[3]) in test_loop()
120 err = clEnqueueWriteBuffer(queue, streams[0], CL_TRUE, 0, length, input_ptr, 0, NULL, NULL); in test_loop()
126 err = clEnqueueWriteBuffer(queue, streams[1], CL_TRUE, 0, length, loop_indx, 0, NULL, NULL); in test_loop()
132 err = clEnqueueWriteBuffer(queue, streams[2], CL_TRUE, 0, length, loop_cnt, 0, NULL, NULL); in test_loop()
143 err = clSetKernelArg(kernel, 0, sizeof streams[0], &streams[0]); in test_loop()
144 err |= clSetKernelArg(kernel, 1, sizeof streams[1], &streams[1]); in test_loop()
145 err |= clSetKernelArg(kernel, 2, sizeof streams[2], &streams[2]); in test_loop()
146 err |= clSetKernelArg(kernel, 3, sizeof streams[3], &streams[3]); in test_loop()
161 err = clEnqueueReadBuffer(queue, streams[3], CL_TRUE, 0, length, output_ptr, 0, NULL, NULL); in test_loop()
171 clReleaseMemObject(streams[0]); in test_loop()
172 clReleaseMemObject(streams[1]); in test_loop()
173 clReleaseMemObject(streams[2]); in test_loop()
174 clReleaseMemObject(streams[3]); in test_loop()