• Home
  • Raw
  • Download

Lines Matching full:streams

53     cl_mem            streams[4];  in test_mix()  local
69 streams[0] = clCreateBuffer(context, CL_MEM_READ_WRITE, in test_mix()
71 if (!streams[0]) in test_mix()
76 streams[1] = clCreateBuffer(context, CL_MEM_READ_WRITE, in test_mix()
78 if (!streams[1]) in test_mix()
83 streams[2] = clCreateBuffer(context, CL_MEM_READ_WRITE, in test_mix()
85 if (!streams[2]) in test_mix()
91 streams[3] = clCreateBuffer(context, CL_MEM_READ_WRITE, in test_mix()
93 if (!streams[3]) in test_mix()
117 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_float)*num_elements, (void *)inp… in test_mix()
123 …err = clEnqueueWriteBuffer( queue, streams[1], true, 0, sizeof(cl_float)*num_elements, (void *)inp… in test_mix()
129 …err = clEnqueueWriteBuffer( queue, streams[2], true, 0, sizeof(cl_float)*num_elements, (void *)inp… in test_mix()
141 values[0] = streams[0]; in test_mix()
142 values[1] = streams[1]; in test_mix()
143 values[2] = streams[2]; in test_mix()
144 values[3] = streams[3]; in test_mix()
145 err = clSetKernelArg(kernel, 0, sizeof streams[0], &streams[0] ); in test_mix()
146 err |= clSetKernelArg(kernel, 1, sizeof streams[1], &streams[1] ); in test_mix()
147 err |= clSetKernelArg(kernel, 2, sizeof streams[2], &streams[2] ); in test_mix()
148 err |= clSetKernelArg(kernel, 3, sizeof streams[3], &streams[3] ); in test_mix()
163 …err = clEnqueueReadBuffer( queue, streams[3], true, 0, sizeof(cl_float)*num_elements, (void *)outp… in test_mix()
182 clReleaseMemObject(streams[0]); in test_mix()
183 clReleaseMemObject(streams[1]); in test_mix()
184 clReleaseMemObject(streams[2]); in test_mix()
185 clReleaseMemObject(streams[3]); in test_mix()