Home
last modified time | relevance | path

Searched refs:cl_mem (Results 1 – 25 of 325) sorted by relevance

12345678910>>...13

/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dopencl_wrapper.h91 typedef cl_mem(CL_API_CALL *PFN_clCreateBuffer)(
95 typedef cl_mem(CL_API_CALL *PFN_clCreateSubBuffer)(
96 cl_mem /* buffer */, cl_mem_flags /* flags */,
100 typedef cl_mem(CL_API_CALL *PFN_clCreateImage)(
105 typedef cl_mem(CL_API_CALL *PFN_clCreatePipe)(
110 typedef cl_int(CL_API_CALL *PFN_clRetainMemObject)(cl_mem /* memobj */)
112 typedef cl_int(CL_API_CALL *PFN_clReleaseMemObject)(cl_mem /* memobj */)
120 cl_mem /* memobj */, cl_mem_info /* param_name */,
124 cl_mem /* image */, cl_image_info /* param_name */,
128 cl_mem /* pipe */, cl_pipe_info /* param_name */,
[all …]
Dtensor.h44 Tensor(cl_mem memory, bool memory_owner, const BHWC& shape,
46 Tensor(cl_mem memory, bool memory_owner, const BHWDC& shape,
48 Tensor(cl_mem memory, bool memory_owner, cl_mem image_buffer_memory,
50 Tensor(cl_mem memory, bool memory_owner, cl_mem image_buffer_memory,
78 cl_mem GetMemoryPtr() const;
82 cl_mem GetMemoryPtrForWriting() const;
111 cl_mem memory_;
112 cl_mem image_buffer_memory_; // for TensorStorageType::IMAGE_BUFFER only
134 absl::Status CreateSharedTensor(const CLContext& context, cl_mem memory,
139 absl::Status CreateSharedTensor(const CLContext& context, cl_mem memory,
Dcl_arguments.h102 absl::Status SetImage2D(const std::string& name, cl_mem memory);
103 absl::Status SetBuffer(const std::string& name, cl_mem memory);
104 absl::Status SetImage2DArray(const std::string& name, cl_mem memory);
105 absl::Status SetImage3D(const std::string& name, cl_mem memory);
106 absl::Status SetImageBuffer(const std::string& name, cl_mem memory);
107 absl::Status SetCustomMemory(const std::string& name, cl_mem memory);
154 cl_mem memory;
158 cl_mem memory;
162 cl_mem memory;
166 cl_mem memory;
[all …]
Dgpu_object.h37 std::vector<std::pair<std::string, cl_mem>> buffers;
38 std::vector<std::pair<std::string, cl_mem>> images2d;
39 std::vector<std::pair<std::string, cl_mem>> image2d_arrays;
40 std::vector<std::pair<std::string, cl_mem>> images3d;
41 std::vector<std::pair<std::string, cl_mem>> image_buffers;
42 std::vector<std::pair<std::string, cl_mem>> custom_memories;
/external/angle/include/CL/
Dcl_icd.h137 typedef cl_mem(CL_API_CALL *cl_api_clCreateBuffer)(
143 typedef cl_mem(CL_API_CALL *cl_api_clCreateImage)(
156 typedef cl_mem(CL_API_CALL *cl_api_clCreateBufferWithProperties)(
161 typedef cl_mem(CL_API_CALL *cl_api_clCreateImageWithProperties)(
180 cl_mem memobj) CL_API_SUFFIX__VERSION_1_0;
183 cl_mem memobj) CL_API_SUFFIX__VERSION_1_0;
191 cl_mem memobj, cl_mem_info param_name, size_t param_value_size,
195 cl_mem image, cl_image_info param_name, size_t param_value_size,
200 typedef cl_mem(CL_API_CALL *cl_api_clCreatePipe)(
207 cl_mem /* pipe */, cl_pipe_info /* param_name */,
[all …]
Dcl_gl.h51 extern CL_API_ENTRY cl_mem CL_API_CALL
59 extern CL_API_ENTRY cl_mem CL_API_CALL
69 extern CL_API_ENTRY cl_mem CL_API_CALL
76 clGetGLObjectInfo(cl_mem memobj,
81 clGetGLTextureInfo(cl_mem memobj,
90 const cl_mem * mem_objects,
98 const cl_mem * mem_objects,
105 extern CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL
113 extern CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL
Dcl_dx9_media_sharing.h89 typedef cl_mem (CL_API_CALL *clCreateFromDX9MediaSurfaceKHR_fn)(
100 const cl_mem * mem_objects,
108 const cl_mem * mem_objects,
173 extern CL_API_ENTRY cl_mem CL_API_CALL
182 typedef cl_mem (CL_API_CALL *clCreateFromDX9MediaSurfaceINTEL_fn)(
194 const cl_mem* mem_objects,
202 const cl_mem* mem_objects,
211 cl_mem* mem_objects,
219 cl_mem* mem_objects,
Dcl.h33 typedef struct _cl_mem * cl_mem; typedef
150 cl_mem buffer;
155 cl_mem mem_object;
1079 extern CL_API_ENTRY cl_mem CL_API_CALL
1088 extern CL_API_ENTRY cl_mem CL_API_CALL
1089 clCreateSubBuffer(cl_mem buffer,
1099 extern CL_API_ENTRY cl_mem CL_API_CALL
1111 extern CL_API_ENTRY cl_mem CL_API_CALL
1123 extern CL_API_ENTRY cl_mem CL_API_CALL
1131 extern CL_API_ENTRY cl_mem CL_API_CALL
[all …]
Dcl_egl.h51 extern CL_API_ENTRY cl_mem CL_API_CALL
59 typedef cl_mem (CL_API_CALL *clCreateFromEGLImageKHR_fn)(
71 const cl_mem * mem_objects,
79 const cl_mem * mem_objects,
88 const cl_mem * mem_objects,
96 const cl_mem * mem_objects,
/external/angle/src/libANGLE/
DCLCommandQueue.h36 cl_int enqueueReadBuffer(cl_mem buffer,
45 cl_int enqueueWriteBuffer(cl_mem buffer,
54 cl_int enqueueReadBufferRect(cl_mem buffer,
68 cl_int enqueueWriteBufferRect(cl_mem buffer,
82 cl_int enqueueCopyBuffer(cl_mem srcBuffer,
83 cl_mem dstBuffer,
91 cl_int enqueueCopyBufferRect(cl_mem srcBuffer,
92 cl_mem dstBuffer,
104 cl_int enqueueFillBuffer(cl_mem buffer,
113 void *enqueueMapBuffer(cl_mem buffer,
[all …]
DvalidationCL_autogen.h71 cl_int ValidateRetainMemObject(cl_mem memobj);
72 cl_int ValidateReleaseMemObject(cl_mem memobj);
79 cl_int ValidateGetMemObjectInfo(cl_mem memobj,
84 cl_int ValidateGetImageInfo(cl_mem image,
163 cl_mem buffer,
172 cl_mem buffer,
181 cl_mem src_buffer,
182 cl_mem dst_buffer,
190 cl_mem image,
201 cl_mem image,
[all …]
/external/mesa3d/include/CL/
Dcl_icd.h137 typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateBuffer)(
143 typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateImage)(
156 typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateBufferWithProperties)(
161 typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreateImageWithProperties)(
180 cl_mem memobj) CL_API_SUFFIX__VERSION_1_0;
183 cl_mem memobj) CL_API_SUFFIX__VERSION_1_0;
191 cl_mem memobj, cl_mem_info param_name, size_t param_value_size,
195 cl_mem image, cl_image_info param_name, size_t param_value_size,
200 typedef CL_API_ENTRY cl_mem(CL_API_CALL *cl_api_clCreatePipe)(
207 cl_mem /* pipe */, cl_pipe_info /* param_name */,
[all …]
Dcl_gl.h63 extern CL_API_ENTRY cl_mem CL_API_CALL
71 extern CL_API_ENTRY cl_mem CL_API_CALL
81 extern CL_API_ENTRY cl_mem CL_API_CALL
88 clGetGLObjectInfo(cl_mem memobj,
93 clGetGLTextureInfo(cl_mem memobj,
102 const cl_mem * mem_objects,
110 const cl_mem * mem_objects,
117 extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL
125 extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL
Dcl.h33 typedef struct _cl_mem * cl_mem; typedef
148 cl_mem buffer;
151 cl_mem mem_object;
1077 extern CL_API_ENTRY cl_mem CL_API_CALL
1086 extern CL_API_ENTRY cl_mem CL_API_CALL
1087 clCreateSubBuffer(cl_mem buffer,
1097 extern CL_API_ENTRY cl_mem CL_API_CALL
1109 extern CL_API_ENTRY cl_mem CL_API_CALL
1121 extern CL_API_ENTRY cl_mem CL_API_CALL
1129 extern CL_API_ENTRY cl_mem CL_API_CALL
[all …]
Dcl_egl.h63 extern CL_API_ENTRY cl_mem CL_API_CALL
71 typedef CL_API_ENTRY cl_mem (CL_API_CALL *clCreateFromEGLImageKHR_fn)(
83 const cl_mem * mem_objects,
91 const cl_mem * mem_objects,
100 const cl_mem * mem_objects,
108 const cl_mem * mem_objects,
/external/angle/src/libGLESv2/
Dcl_stubs_autogen.h87 cl_mem CreateBuffer(cl_context context,
92 cl_mem CreateBufferWithProperties(cl_context context,
98 cl_mem CreateSubBuffer(cl_mem buffer,
103 cl_mem CreateImage(cl_context context,
109 cl_mem CreateImageWithProperties(cl_context context,
116 cl_mem CreatePipe(cl_context context,
122 cl_int RetainMemObject(cl_mem memobj);
123 cl_int ReleaseMemObject(cl_mem memobj);
130 cl_int GetMemObjectInfo(cl_mem memobj,
135 cl_int GetImageInfo(cl_mem image,
[all …]
Dentry_points_cl_autogen.h70 cl_mem CL_API_CALL clCreateBuffer(cl_context context,
75 cl_int CL_API_CALL clRetainMemObject(cl_mem memobj);
76 cl_int CL_API_CALL clReleaseMemObject(cl_mem memobj);
83 cl_int CL_API_CALL clGetMemObjectInfo(cl_mem memobj,
88 cl_int CL_API_CALL clGetImageInfo(cl_mem image,
172 cl_mem buffer,
181 cl_mem buffer,
190 cl_mem src_buffer,
191 cl_mem dst_buffer,
199 cl_mem image,
[all …]
Dcl_stubs.cpp226 cl_mem CreateBuffer(cl_context context, in CreateBuffer()
235 cl_mem CreateBufferWithProperties(cl_context context, in CreateBufferWithProperties()
245 cl_mem CreateSubBuffer(cl_mem buffer, in CreateSubBuffer()
255 cl_mem CreateImage(cl_context context, in CreateImage()
266 cl_mem CreateImageWithProperties(cl_context context, in CreateImageWithProperties()
278 cl_mem CreatePipe(cl_context context, in CreatePipe()
289 cl_int RetainMemObject(cl_mem memobj) in RetainMemObject()
295 cl_int ReleaseMemObject(cl_mem memobj) in ReleaseMemObject()
316 cl_int GetMemObjectInfo(cl_mem memobj, in GetMemObjectInfo()
326 cl_int GetImageInfo(cl_mem image, in GetImageInfo()
[all …]
/external/OpenCL-CTS/test_common/harness/
DclImageHelper.h32 static inline cl_mem create_image_2d(cl_context context, cl_mem_flags flags, in create_image_2d()
38 cl_mem mImage = NULL; in create_image_2d()
86 static inline cl_mem
90 cl_mem buffer, cl_int *errcode_ret) in create_image_2d_buffer()
92 cl_mem mImage = NULL; in create_image_2d_buffer()
118 static inline cl_mem create_image_3d(cl_context context, cl_mem_flags flags, in create_image_3d()
125 cl_mem mImage; in create_image_3d()
170 static inline cl_mem
177 cl_mem mImage; in create_image_2d_array()
207 static inline cl_mem create_image_1d_array( in create_image_1d_array()
[all …]
/external/OpenCL-CTS/dependencies/ocl-headers/CL/
Dcl_gl.h51 extern CL_API_ENTRY cl_mem CL_API_CALL
59 extern CL_API_ENTRY cl_mem CL_API_CALL
69 extern CL_API_ENTRY cl_mem CL_API_CALL
76 clGetGLObjectInfo(cl_mem memobj,
81 clGetGLTextureInfo(cl_mem memobj,
90 const cl_mem * mem_objects,
98 const cl_mem * mem_objects,
105 extern CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL
113 extern CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL
Dcl.h33 typedef struct _cl_mem * cl_mem; typedef
150 cl_mem buffer;
155 cl_mem mem_object;
1079 extern CL_API_ENTRY cl_mem CL_API_CALL
1088 extern CL_API_ENTRY cl_mem CL_API_CALL
1089 clCreateSubBuffer(cl_mem buffer,
1099 extern CL_API_ENTRY cl_mem CL_API_CALL
1111 extern CL_API_ENTRY cl_mem CL_API_CALL
1123 extern CL_API_ENTRY cl_mem CL_API_CALL
1131 extern CL_API_ENTRY cl_mem CL_API_CALL
[all …]
Dcl_egl.h51 extern CL_API_ENTRY cl_mem CL_API_CALL
59 typedef cl_mem (CL_API_CALL *clCreateFromEGLImageKHR_fn)(
71 const cl_mem * mem_objects,
79 const cl_mem * mem_objects,
88 const cl_mem * mem_objects,
96 const cl_mem * mem_objects,
/external/OpenCL-CTS/test_conformance/allocations/
Dallocation_functions.h19 …, cl_command_queue *queue, cl_device_id device_id, size_t size_to_allocate, int type, cl_mem *mem);
20 int allocate_buffer(cl_context context, cl_command_queue *queue, cl_device_id device_id, cl_mem *me…
21 …ead(cl_context context, cl_command_queue *queue, cl_device_id device_id, cl_mem *mem, size_t size_…
22 …ite(cl_context context, cl_command_queue *queue, cl_device_id device_id, cl_mem *mem, size_t size_…
24 … int type, cl_mem mems[], int *number_of_mems, size_t *final_size, int force_fill, MTdata d);
/external/OpenCL-CTS/test_conformance/pipes/
Dtest_pipe_limits.cpp229 err = clSetKernelArg(kernel[0], 0, sizeof(cl_mem), (void*)&buffers[0]); in test_pipe_max_args()
231 err |= clSetKernelArg(kernel[0], i+1, sizeof(cl_mem), (void*)&pipes[i]); in test_pipe_max_args()
234 err |= clSetKernelArg(kernel[1], 0, sizeof(cl_mem), (void*)&buffers[1]); in test_pipe_max_args()
236 err |= clSetKernelArg(kernel[1], i+1, sizeof(cl_mem), (void*)&pipes[i]); in test_pipe_max_args()
378 err = clSetKernelArg(kernel[0], 0, sizeof(cl_mem), (void*)&buffers[0]); in test_pipe_max_packet_size()
379 err |= clSetKernelArg(kernel[0], 1, sizeof(cl_mem), (void*)&pipe); in test_pipe_max_packet_size()
380 err |= clSetKernelArg(kernel[1], 0, sizeof(cl_mem), (void*)&pipe); in test_pipe_max_packet_size()
381 err |= clSetKernelArg(kernel[1], 1, sizeof(cl_mem), (void*)&buffers[1]); in test_pipe_max_packet_size()
546 err = clSetKernelArg(kernel[2], 0, sizeof(cl_mem), (void*)&buf_reserve_id_t_size); in test_pipe_max_active_reservations()
596 err = clSetKernelArg(kernel[0], 0, sizeof(cl_mem), (void*)&buffers[0]); in test_pipe_max_active_reservations()
[all …]
/external/OpenCL-CTS/test_conformance/api/
Dtest_null_buffer_arg.cpp59 cl_mem test_buf, cl_mem result_buf, test_type type) in test_setargs_and_execution()
68 status = clSetKernelArg(kernel, 0, sizeof(cl_mem), &test_buf); in test_setargs_and_execution()
72 status = clSetKernelArg(kernel, 0, sizeof(cl_mem), &test_buf); in test_setargs_and_execution()
75 status = clSetKernelArg(kernel, 0, sizeof(cl_mem), NULL); in test_setargs_and_execution()
168 cl_mem dev_src = clCreateBuffer(context, CL_MEM_READ_ONLY, NITEMS*sizeof(cl_float), in test_null_buffer_arg()
176 cl_mem dev_dst = clCreateBuffer(context, CL_MEM_WRITE_ONLY, buffer_size, in test_null_buffer_arg()
180 status = clSetKernelArg(kernel, 1, sizeof(cl_mem), &dev_dst); in test_null_buffer_arg()

12345678910>>...13