Home
last modified time | relevance | path

Searched refs:memobjs (Results 1 – 5 of 5) sorted by relevance

/external/OpenCL-CTS/test_conformance/profiling/
Dexecute.cpp173 cl_mem memobjs[3]; in kernelFilter() local
187 memobjs[0] = in kernelFilter()
190 if( memobjs[0] == (cl_mem)0 ){ in kernelFilter()
195memobjs[1] = create_image_2d( context, CL_MEM_WRITE_ONLY, &image_format_desc, w, h, 0, NULL, &err … in kernelFilter()
196 if( memobjs[1] == (cl_mem)0 ){ in kernelFilter()
198 clReleaseMemObject( memobjs[0] ); in kernelFilter()
203 memobjs[2] = clCreateBuffer( in kernelFilter()
206 if( memobjs[2] == (cl_mem)0 ){ in kernelFilter()
208 clReleaseMemObject( memobjs[1] ); in kernelFilter()
209 clReleaseMemObject( memobjs[0] ); in kernelFilter()
[all …]
DreadImage.cpp125 cl_mem memobjs[2]; in read_image() local
171 memobjs[0] = create_image_2d( context, flags, &image_format_desc, w, h, 0, NULL, &err ); in read_image()
172 if( memobjs[0] == (cl_mem)0 ){ in read_image()
179 memobjs[1] = clCreateBuffer(context, CL_MEM_READ_WRITE, in read_image()
181 if( memobjs[1] == (cl_mem)0 ){ in read_image()
184 clReleaseMemObject(memobjs[0]); in read_image()
189 err = clEnqueueWriteBuffer( queue, memobjs[1], true, 0, num_bytes, inptr, 0, NULL, NULL ); in read_image()
191 clReleaseMemObject(memobjs[0]); in read_image()
192 clReleaseMemObject(memobjs[1]); in read_image()
202 clReleaseMemObject(memobjs[0]); in read_image()
[all …]
Dexecute_multipass.cpp94 cl_mem memobjs[2]; in run_kernel() local
125 memobjs[0] = in run_kernel()
128 if( memobjs[0] == (cl_mem)0 ){ in run_kernel()
134 memobjs[1] = in run_kernel()
137 if( memobjs[1] == (cl_mem)0 ){ in run_kernel()
139 clReleaseMemObject( memobjs[0] ); in run_kernel()
146 clReleaseMemObject( memobjs[1] ); in run_kernel()
147 clReleaseMemObject( memobjs[0] ); in run_kernel()
154 err |= clSetKernelArg( kernel[0], 0, sizeof( cl_mem ), (void *)&memobjs[0] ); in run_kernel()
155 err |= clSetKernelArg( kernel[0], 1, sizeof( cl_mem ), (void *)&memobjs[1] ); in run_kernel()
[all …]
Dcopy.cpp434 cl_mem memobjs[3]; in copy_image_size() local
475 memobjs[0] = create_image_2d(context, flags, &image_format_desc, w, h, 0, NULL, &err); in copy_image_size()
476 if( memobjs[0] == (cl_mem)0 ) { in copy_image_size()
483 memobjs[1] = in copy_image_size()
485 if( memobjs[1] == (cl_mem)0 ) { in copy_image_size()
486 clReleaseMemObject(memobjs[0]); in copy_image_size()
494 memobjs[2] = create_image_2d(context, flags, &image_format_desc, w, h, 0, NULL, &err); in copy_image_size()
495 if( memobjs[2] == (cl_mem)0 ) { in copy_image_size()
496 clReleaseMemObject(memobjs[0]); in copy_image_size()
497 clReleaseMemObject(memobjs[1]); in copy_image_size()
[all …]
DwriteImage.cpp407 cl_mem memobjs[2]; in write_image() local
456 memobjs[0] = create_image_2d( context, flags, &image_format_desc, w, h, 0, NULL, &err ); in write_image()
457 if( memobjs[0] == (cl_mem)0 ){ in write_image()
464 memobjs[1] = clCreateBuffer(context, CL_MEM_READ_WRITE, in write_image()
466 if( memobjs[1] == (cl_mem)0 ){ in write_image()
469 clReleaseMemObject(memobjs[0]); in write_image()
476 …err = clEnqueueWriteImage( queue, memobjs[0], false, origin, region, 0, 0, inptr, 0, NULL, &writeE… in write_image()
478 clReleaseMemObject(memobjs[0]); in write_image()
479 clReleaseMemObject(memobjs[1]); in write_image()
493 clReleaseMemObject(memobjs[0]); in write_image()
[all …]