Home
last modified time | relevance | path

Searched refs:host_ptr (Results 1 – 25 of 36) sorted by relevance

12

/external/OpenCL-CTS/test_common/harness/
DclImageHelper.h35 size_t image_row_pitch, void *host_ptr, in create_image_2d() argument
42 host_ptr = NULL; in create_image_2d()
60 host_ptr, errcode_ret); in create_image_2d()
71 image_row_pitch, host_ptr, errcode_ret); in create_image_2d()
122 size_t image_slice_pitch, void *host_ptr, in create_image_3d() argument
129 host_ptr = NULL; in create_image_3d()
146 mImage = clCreateImage(context, flags, image_format, &image_desc, host_ptr, in create_image_3d()
158 image_slice_pitch, host_ptr, errcode_ret); in create_image_3d()
175 void *host_ptr, cl_int *errcode_ret) in create_image_2d_array() argument
181 host_ptr = NULL; in create_image_2d_array()
[all …]
/external/mesa3d/src/gallium/frontends/clover/core/
Dmemory.cpp30 size_t size, void *host_ptr) : in memory_obj() argument
32 _size(size), _host_ptr(host_ptr) { in memory_obj()
34 data.append((char *)host_ptr, size); in memory_obj()
65 memory_obj::host_ptr() const { in host_ptr() function in memory_obj
70 size_t size, void *host_ptr) : in buffer() argument
71 memory_obj(ctx, flags, size, host_ptr) { in buffer()
80 size_t size, void *host_ptr) : in root_buffer() argument
81 buffer(ctx, flags, size, host_ptr) { in root_buffer()
88 data_ptr = !data.empty() ? data.data() : host_ptr(); in resource_in()
123 (char *)parent.host_ptr() + offset), in sub_buffer()
[all …]
Dmemory.hpp39 size_t size, void *host_ptr);
61 void *host_ptr() const;
78 size_t size, void *host_ptr);
87 size_t size, void *host_ptr);
131 void *host_ptr);
167 void *host_ptr);
178 void *host_ptr);
/external/llvm-project/openmp/libomptarget/include/
Domptarget.h150 int omp_target_associate_ptr(void *host_ptr, void *device_ptr, size_t size,
152 int omp_target_disassociate_ptr(void *host_ptr, int device_num);
236 int __tgt_target(int64_t device_id, void *host_ptr, int32_t arg_num,
239 int __tgt_target_nowait(int64_t device_id, void *host_ptr, int32_t arg_num,
243 int __tgt_target_mapper(ident_t *loc, int64_t device_id, void *host_ptr,
247 int __tgt_target_nowait_mapper(ident_t *loc, int64_t device_id, void *host_ptr,
254 int __tgt_target_teams(int64_t device_id, void *host_ptr, int32_t arg_num,
258 int __tgt_target_teams_nowait(int64_t device_id, void *host_ptr,
264 int __tgt_target_teams_mapper(ident_t *loc, int64_t device_id, void *host_ptr,
270 ident_t *loc, int64_t device_id, void *host_ptr, int32_t arg_num,
/external/llvm-project/openmp/libomptarget/src/
Dinterface.cpp301 EXTERN int __tgt_target(int64_t device_id, void *host_ptr, int32_t arg_num, in __tgt_target() argument
303 return __tgt_target_mapper(nullptr, device_id, host_ptr, arg_num, args_base, in __tgt_target()
307 EXTERN int __tgt_target_nowait(int64_t device_id, void *host_ptr, in __tgt_target_nowait() argument
314 return __tgt_target_mapper(nullptr, device_id, host_ptr, arg_num, args_base, in __tgt_target_nowait()
318 EXTERN int __tgt_target_mapper(ident_t *loc, int64_t device_id, void *host_ptr, in __tgt_target_mapper() argument
324 PRId64 "\n", DPxPTR(host_ptr), device_id); in __tgt_target_mapper()
345 int rc = target(device_id, host_ptr, arg_num, args_base, args, arg_sizes, in __tgt_target_mapper()
352 ident_t *loc, int64_t device_id, void *host_ptr, int32_t arg_num, in __tgt_target_nowait_mapper() argument
359 return __tgt_target_mapper(loc, device_id, host_ptr, arg_num, args_base, args, in __tgt_target_nowait_mapper()
363 EXTERN int __tgt_target_teams(int64_t device_id, void *host_ptr, in __tgt_target_teams() argument
[all …]
Dapi.cpp245 EXTERN int omp_target_associate_ptr(void *host_ptr, void *device_ptr, in omp_target_associate_ptr() argument
249 DPxPTR(host_ptr), DPxPTR(device_ptr), size, device_offset, device_num); in omp_target_associate_ptr()
251 if (!host_ptr || !device_ptr || size <= 0) { in omp_target_associate_ptr()
268 int rc = Device.associatePtr(host_ptr, device_addr, size); in omp_target_associate_ptr()
273 EXTERN int omp_target_disassociate_ptr(void *host_ptr, int device_num) { in omp_target_disassociate_ptr() argument
275 "device_num %d\n", DPxPTR(host_ptr), device_num); in omp_target_disassociate_ptr()
277 if (!host_ptr) { in omp_target_disassociate_ptr()
294 int rc = Device.disassociatePtr(host_ptr); in omp_target_disassociate_ptr()
/external/mesa3d/src/gallium/frontends/clover/api/
Dmemory.cpp89 void *host_ptr, cl_int *r_errcode) try { in clCreateBuffer() argument
93 if (bool(host_ptr) != bool(flags & (CL_MEM_USE_HOST_PTR | in clCreateBuffer() local
104 return new root_buffer(ctx, flags, size, host_ptr); in clCreateBuffer()
145 void *host_ptr, cl_int *r_errcode) try { in clCreateImage() argument
162 if (!host_ptr && in clCreateImage()
172 if (bool(host_ptr) != bool(d_flags & (CL_MEM_USE_HOST_PTR | in clCreateImage() local
200 row_pitch, host_ptr); in clCreateImage()
220 slice_pitch, host_ptr); in clCreateImage()
243 void *host_ptr, cl_int *r_errcode) { in clCreateImage2D() argument
247 return clCreateImage(d_ctx, d_flags, format, &desc, host_ptr, r_errcode); in clCreateImage2D()
[all …]
/external/OpenCL-CTS/test_conformance/images/clFillImage/
Dtest_fill_generic.cpp30 void *host_ptr = NULL; in create_image() local
47 host_ptr = malloc( imageInfo->rowPitch ); in create_image()
53 host_ptr = malloc( imageInfo->height * imageInfo->rowPitch ); in create_image()
59 host_ptr = malloc( imageInfo->depth * imageInfo->slicePitch ); in create_image()
65 host_ptr = malloc( imageInfo->arraySize * imageInfo->slicePitch ); in create_image()
71 host_ptr = malloc( imageInfo->arraySize * imageInfo->slicePitch ); in create_image()
77 if ( NULL == host_ptr ) in create_image()
85 img = clCreateImage(context, mem_flags, imageInfo->format, &imageDesc, host_ptr, error); in create_image()
91 … int callbackError = clSetMemObjectDestructorCallback( img, free_pitch_buffer, host_ptr ); in create_image()
94 free( host_ptr ); in create_image()
[all …]
/external/OpenCL-CTS/test_conformance/images/clCopyImage/
Dtest_copy_generic.cpp28 void *host_ptr = NULL; in create_image() local
46 host_ptr = malloc( imageInfo->rowPitch ); in create_image()
52 host_ptr = malloc( imageInfo->height * imageInfo->rowPitch ); in create_image()
58 host_ptr = malloc( imageInfo->depth * imageInfo->slicePitch ); in create_image()
64 host_ptr = malloc( imageInfo->arraySize * imageInfo->slicePitch ); in create_image()
70 host_ptr = malloc( imageInfo->arraySize * imageInfo->slicePitch ); in create_image()
79 if ( NULL == host_ptr ) in create_image()
87 img = clCreateImage(context, mem_flags, imageInfo->format, &imageDesc, host_ptr, error); in create_image()
93 … int callbackError = clSetMemObjectDestructorCallback( img, free_pitch_buffer, host_ptr ); in create_image()
96 free( host_ptr ); in create_image()
[all …]
/external/OpenCL-CTS/test_conformance/images/clGetInfo/
Dtest_2D.cpp23 void *host_ptr = NULL; in test_get_image_info_single() local
30 host_ptr = (char *)imageValues; in test_get_image_info_single()
51 …p...\n", (int)imageInfo->width, (unsigned long)flags, (int)row_pitch, (int)slice_pitch, host_ptr ); in test_get_image_info_single()
55 …>width, (int)imageInfo->height, (unsigned long)flags, (int)row_pitch, (int)slice_pitch, host_ptr ); in test_get_image_info_single()
60 …>height, (int)imageInfo->depth, (unsigned long)flags, (int)row_pitch, (int)slice_pitch, host_ptr ); in test_get_image_info_single()
65 …dth, (int)imageInfo->arraySize, (unsigned long)flags, (int)row_pitch, (int)slice_pitch, host_ptr ); in test_get_image_info_single()
70 …ght, (int)imageInfo->arraySize, (unsigned long)flags, (int)row_pitch, (int)slice_pitch, host_ptr ); in test_get_image_info_single()
74 image = clCreateImage(context, flags, imageInfo->format, &imageDesc, host_ptr, &error); in test_get_image_info_single()
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dopencl_wrapper.cc357 const cl_image_desc* image_desc, void* host_ptr, in LoadOpenCLFunctions() argument
360 return clCreateImage(context, flags, image_format, image_desc, host_ptr, in LoadOpenCLFunctions()
365 image_desc->image_row_pitch, host_ptr, errcode_ret); in LoadOpenCLFunctions()
371 const cl_image_desc* image_desc, void* host_ptr, in LoadOpenCLFunctions() argument
374 return clCreateImage(context, flags, image_format, image_desc, host_ptr, in LoadOpenCLFunctions()
380 image_desc->image_slice_pitch, host_ptr, in LoadOpenCLFunctions()
Dopencl_wrapper.h647 const cl_image_desc *image_desc, void *host_ptr,
654 const cl_image_desc *image_desc, void *host_ptr,
/external/angle/src/libGLESv2/
Dcl_stubs.cpp229 void *host_ptr, in CreateBuffer() argument
232 return context->cast<Context>().createBuffer(nullptr, flags, size, host_ptr, errorCode); in CreateBuffer()
239 void *host_ptr, in CreateBufferWithProperties() argument
242 return context->cast<Context>().createBuffer(properties, flags, size, host_ptr, errorCode); in CreateBufferWithProperties()
259 void *host_ptr, in CreateImage() argument
262 return context->cast<Context>().createImage(nullptr, flags, image_format, image_desc, host_ptr, in CreateImage()
271 void *host_ptr, in CreateImageWithProperties() argument
275 host_ptr, errorCode); in CreateImageWithProperties()
1117 void *host_ptr, in CreateImage2D() argument
1121 image_row_pitch, host_ptr, errorCode); in CreateImage2D()
[all …]
Dentry_points_cl_autogen.cpp257 void *host_ptr, in clCreateBuffer() argument
263 (uintptr_t)context, static_cast<unsigned long long>(flags), size, (uintptr_t)host_ptr, in clCreateBuffer()
268 ANGLE_CL_VALIDATE_ERRCODE_RET(CreateBuffer, context, flagsPacked, size, host_ptr); in clCreateBuffer()
271 cl_mem object = CreateBuffer(context, flagsPacked, size, host_ptr, errorCode); in clCreateBuffer()
1160 void *host_ptr, in clCreateImage2D() argument
1169 image_width, image_height, image_row_pitch, (uintptr_t)host_ptr, (uintptr_t)errcode_ret); in clCreateImage2D()
1174 image_height, image_row_pitch, host_ptr); in clCreateImage2D()
1178 image_row_pitch, host_ptr, errorCode); in clCreateImage2D()
1196 void *host_ptr, in clCreateImage3D() argument
1206 (uintptr_t)host_ptr, (uintptr_t)errcode_ret); in clCreateImage3D()
[all …]
Dcl_stubs_autogen.h90 void *host_ptr,
96 void *host_ptr,
107 void *host_ptr,
114 void *host_ptr,
543 void *host_ptr,
553 void *host_ptr,
Dentry_points_cl_autogen.h73 void *host_ptr,
304 void *host_ptr,
314 void *host_ptr,
410 void *host_ptr,
602 void *host_ptr,
609 void *host_ptr,
/external/angle/src/libOpenCL/
DlibOpenCL_autogen.cpp123 void *host_ptr, in clCreateBuffer() argument
126 return cl::GetDispatch().clCreateBuffer(context, flags, size, host_ptr, errcode_ret); in clCreateBuffer()
570 void *host_ptr, in clCreateImage2D() argument
574 image_height, image_row_pitch, host_ptr, errcode_ret); in clCreateImage2D()
585 void *host_ptr, in clCreateImage3D() argument
590 image_slice_pitch, host_ptr, errcode_ret); in clCreateImage3D()
775 void *host_ptr, in clCreateImage() argument
778 return cl::GetDispatch().clCreateImage(context, flags, image_format, image_desc, host_ptr, in clCreateImage()
1134 void *host_ptr, in clCreateBufferWithProperties() argument
1138 host_ptr, errcode_ret); in clCreateBufferWithProperties()
[all …]
/external/angle/src/libANGLE/
DvalidationCL_autogen.h70 const void *host_ptr);
293 const void *host_ptr);
302 const void *host_ptr);
394 const void *host_ptr);
571 const void *host_ptr);
577 const void *host_ptr);
DvalidationCL.cpp825 cl_int ValidateCreateBuffer(cl_context context, MemFlags flags, size_t size, const void *host_ptr) in ValidateCreateBuffer() argument
858 if ((host_ptr != nullptr) != flags.isSet(CL_MEM_USE_HOST_PTR | CL_MEM_COPY_HOST_PTR)) in ValidateCreateBuffer()
2201 const void *host_ptr) in ValidateCreateImage2D() argument
2205 return ValidateCreateImage(context, flags, image_format, &desc, host_ptr); in ValidateCreateImage2D()
2216 const void *host_ptr) in ValidateCreateImage3D() argument
2221 return ValidateCreateImage(context, flags, image_format, &desc, host_ptr); in ValidateCreateImage3D()
2695 const void *host_ptr) in ValidateCreateImage() argument
2783 if (host_ptr == nullptr) in ValidateCreateImage()
2802 if (host_ptr == nullptr) in ValidateCreateImage()
2855 if ((host_ptr != nullptr) != flags.isSet(CL_MEM_USE_HOST_PTR | CL_MEM_COPY_HOST_PTR)) in ValidateCreateImage()
[all …]
/external/mesa3d/include/CL/
Dcl.h1081 void * host_ptr,
1102 void * host_ptr,
1126 void * host_ptr,
1135 void * host_ptr,
1869 void * host_ptr,
1881 void * host_ptr,
Dcl_ext_intel.h700 void * host_ptr,
709 void * host_ptr,
Dcl_icd.h138 cl_context context, cl_mem_flags flags, size_t size, void *host_ptr,
145 const cl_image_desc *image_desc, void *host_ptr,
158 size_t size, void *host_ptr,
164 void *host_ptr, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_3_0;
712 void *host_ptr, cl_int *errcode_ret) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
717 size_t image_row_pitch, size_t image_slice_pitch, void *host_ptr,
/external/angle/include/CL/
Dcl_icd.h138 cl_context context, cl_mem_flags flags, size_t size, void *host_ptr,
145 const cl_image_desc *image_desc, void *host_ptr,
158 size_t size, void *host_ptr,
164 void *host_ptr, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_3_0;
712 void *host_ptr, cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_1_DEPRECATED;
717 size_t image_row_pitch, size_t image_slice_pitch, void *host_ptr,
Dcl.h1083 void * host_ptr,
1104 void * host_ptr,
1128 void * host_ptr,
1137 void * host_ptr,
1871 void * host_ptr,
1883 void * host_ptr,
/external/OpenCL-CTS/dependencies/ocl-headers/CL/
Dcl.h1083 void * host_ptr,
1104 void * host_ptr,
1128 void * host_ptr,
1137 void * host_ptr,
1871 void * host_ptr,
1883 void * host_ptr,

12