Home
last modified time | relevance | path

Searched refs:CL_MEM_READ_ONLY (Results 1 – 25 of 127) sorted by relevance

123456

/external/OpenCL-CTS/test_conformance/api/
Dtest_mem_object_info.cpp71 CL_MEM_READ_ONLY, in test_get_buffer_info()
72 CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR, in test_get_buffer_info()
73 CL_MEM_READ_ONLY | CL_MEM_ALLOC_HOST_PTR, in test_get_buffer_info()
74 CL_MEM_READ_ONLY | CL_MEM_ALLOC_HOST_PTR | CL_MEM_COPY_HOST_PTR, in test_get_buffer_info()
75 CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR, in test_get_buffer_info()
86 CL_MEM_HOST_READ_ONLY | CL_MEM_READ_ONLY, in test_get_buffer_info()
87 CL_MEM_HOST_READ_ONLY | CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR, in test_get_buffer_info()
88 CL_MEM_HOST_READ_ONLY | CL_MEM_READ_ONLY | CL_MEM_ALLOC_HOST_PTR, in test_get_buffer_info()
89 CL_MEM_HOST_READ_ONLY | CL_MEM_READ_ONLY | CL_MEM_ALLOC_HOST_PTR | CL_MEM_COPY_HOST_PTR, in test_get_buffer_info()
90 CL_MEM_HOST_READ_ONLY | CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR, in test_get_buffer_info()
[all …]
Dtest_min_image_formats.cpp44 CL_MEM_READ_ONLY, in test_min_image_formats()
81 const char* testTypeString = flags == CL_MEM_READ_ONLY in test_min_image_formats()
94 if (type == CL_MEM_OBJECT_IMAGE3D && flags != CL_MEM_READ_ONLY in test_min_image_formats()
Dtest_api_min_max.cpp536 memHdl = clCreateBuffer( context, CL_MEM_READ_ONLY, (size_t)maxAllocSize, NULL, &error ); in test_min_max_mem_alloc_size()
591 …if (!is_image_format_supported( context, CL_MEM_READ_ONLY, CL_MEM_OBJECT_IMAGE2D, &image_format_de… in test_min_max_image_2d_width()
608 …streams[0] = create_image_2d( context, CL_MEM_READ_ONLY, &image_format_desc, maxDimension, 1, 0, N… in test_min_max_image_2d_width()
658 …if (!is_image_format_supported( context, CL_MEM_READ_ONLY, CL_MEM_OBJECT_IMAGE2D, &image_format_de… in test_min_max_image_2d_height()
675 …streams[0] = create_image_2d( context, CL_MEM_READ_ONLY, &image_format_desc, 1, maxDimension, 0, N… in test_min_max_image_2d_height()
698 CL_MEM_READ_ONLY, 0, &image_format_desc); in test_min_max_image_3d_width()
715 …if (!is_image_format_supported( context, CL_MEM_READ_ONLY, CL_MEM_OBJECT_IMAGE3D, &image_format_de… in test_min_max_image_3d_width()
732 …streams[0] = create_image_3d( context, CL_MEM_READ_ONLY, &image_format_desc, maxDimension, 1, 2, 0… in test_min_max_image_3d_width()
755 CL_MEM_READ_ONLY, 0, &image_format_desc); in test_min_max_image_3d_height()
772 …if (!is_image_format_supported( context, CL_MEM_READ_ONLY, CL_MEM_OBJECT_IMAGE3D, &image_format_de… in test_min_max_image_3d_height()
[all …]
Dtest_retain.cpp142 object = clCreateBuffer( context, CL_MEM_READ_ONLY, 32, NULL, &err ); in test_retain_mem_object_single()
174 object = clCreateBuffer( context, CL_MEM_READ_ONLY, 32, NULL, &err ); in test_retain_mem_object_multiple()
248 buffer = clCreateBuffer( context, CL_MEM_READ_ONLY, 32, NULL, &err ); in test_retain_mem_object_set_kernel_arg()
Dtest_queries.cpp518 CL_MEM_READ_ONLY,
521 CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR,
524 CL_MEM_READ_ONLY | CL_MEM_ALLOC_HOST_PTR,
527 CL_MEM_READ_ONLY | CL_MEM_ALLOC_HOST_PTR | CL_MEM_COPY_HOST_PTR,
530 CL_MEM_READ_ONLY | CL_MEM_USE_HOST_PTR,
759 in = clCreateBuffer(context, CL_MEM_READ_ONLY, sizeof(cl_int)*global[0], NULL, &error); in test_kernel_required_group_size()
/external/OpenCL-CTS/test_conformance/basic/
Dtest_imagecopy3d.cpp138 …streams[0] = create_image_3d(context, CL_MEM_READ_ONLY, &img_format, img_width, img_height, img_de… in test_imagecopy3d()
140 …streams[1] = create_image_3d(context, CL_MEM_READ_ONLY, &img_format, img_width, img_height, img_de… in test_imagecopy3d()
145 …streams[2] = create_image_3d(context, CL_MEM_READ_ONLY, &img_format, img_width, img_height, img_de… in test_imagecopy3d()
147 …streams[3] = create_image_3d(context, CL_MEM_READ_ONLY, &img_format, img_width, img_height, img_de… in test_imagecopy3d()
152 …streams[4] = create_image_3d(context, CL_MEM_READ_ONLY, &img_format, img_width, img_height, img_de… in test_imagecopy3d()
154 …streams[5] = create_image_3d(context, CL_MEM_READ_ONLY, &img_format, img_width, img_height, img_de… in test_imagecopy3d()
Dtest_imagearraycopy3d.cpp41 image = create_image_3d(context, CL_MEM_READ_ONLY, format, img_width, in test_imagearraycopy3d_single_format()
126 context, CL_MEM_READ_ONLY, CL_MEM_OBJECT_IMAGE3D, 0, NULL, &num_formats); in test_imagearraycopy3d()
131 err = clGetSupportedImageFormats(context, CL_MEM_READ_ONLY, in test_imagearraycopy3d()
Dtest_arrayimagecopy3d.cpp42 image = create_image_3d(context, CL_MEM_READ_ONLY, format, img_width, in test_arrayimagecopy3d_single_format()
130 context, CL_MEM_READ_ONLY, CL_MEM_OBJECT_IMAGE3D, 0, NULL, &num_formats); in test_arrayimagecopy3d()
135 err = clGetSupportedImageFormats(context, CL_MEM_READ_ONLY, in test_arrayimagecopy3d()
Dtest_image_r8.cpp91 if (!is_image_format_supported(context, CL_MEM_READ_ONLY, in test_image_r8()
103 streams[0] = create_image_2d(context, CL_MEM_READ_ONLY, &img_format, in test_image_r8()
Dtest_readimage3d.cpp154 …if (!is_image_format_required(formatsToTest[i].img_format, CL_MEM_READ_ONLY, CL_MEM_OBJECT_IMAGE3D… in test_readimage3d()
162 …streams[0] = create_image_3d(context, CL_MEM_READ_ONLY, &formatsToTest[i].img_format, img_width, i… in test_readimage3d()
/external/OpenCL-CTS/test_conformance/events/
Daction_classes.cpp287 … mImage = create_image_2d( context, CL_MEM_READ_ONLY, &format, mWidth, mHeight, 0, NULL, &error ); in Setup()
320 …mImage = create_image_3d( context, CL_MEM_READ_ONLY, &format, mWidth, mHeight, mDepth, 0, 0, NULL,… in Setup()
384 …mImage = create_image_3d( context, CL_MEM_READ_ONLY, &format, mWidth, mHeight, mDepth, 0, 0, NULL,… in Setup()
430 …mSrcImage = create_image_2d( context, CL_MEM_READ_ONLY, &format, mWidth, mHeight, 0, NULL, &error … in Setup()
451 …mSrcImage = create_image_2d( context, CL_MEM_READ_ONLY, &format, mWidth, mHeight, 0, NULL, &error … in Setup()
454 …mDstImage = create_image_3d( context, CL_MEM_READ_ONLY, &format, mWidth, mHeight, mDepth, 0, 0, NU… in Setup()
472 …mSrcImage = create_image_3d( context, CL_MEM_READ_ONLY, &format, mWidth, mHeight, mDepth, 0, 0, NU… in Setup()
493 …mSrcImage = create_image_3d( context, CL_MEM_READ_ONLY, &format, mWidth, mHeight, mDepth, 0, 0, NU… in Setup()
496 …mDstImage = create_image_3d( context, CL_MEM_READ_ONLY, &format, mWidth, mHeight, mDepth, 0, 0, NU… in Setup()
515 …mSrcImage = create_image_2d( context, CL_MEM_READ_ONLY, &format, mWidth, mHeight, 0, NULL, &error … in Setup()
[all …]
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dcl_memory.cc25 return CL_MEM_READ_ONLY; in ToClMemFlags()
32 return CL_MEM_READ_ONLY; // unreachable in ToClMemFlags()
/external/OpenCL-CTS/test_conformance/SVM/
Dtest_allocate_shared_buffer.cpp21 CL_MEM_READ_ONLY,
24 CL_MEM_READ_ONLY | CL_MEM_SVM_FINE_GRAIN_BUFFER,
27 CL_MEM_READ_ONLY | CL_MEM_SVM_FINE_GRAIN_BUFFER | CL_MEM_SVM_ATOMICS,
/external/OpenCL-CTS/test_conformance/images/clGetInfo/
Dtest_loops.cpp27 …nly tests...\n", convert_image_type_to_string(image_type), flags == CL_MEM_READ_ONLY ? "read" : "w… in test_image_type()
88 ret += test_image_type( device, context, image_type, CL_MEM_READ_ONLY ); in test_image_set()
/external/OpenCL-CTS/test_conformance/spirv_new/
Dtest_decorate.cpp57 clMemWrapper lhs = clCreateBuffer(context, CL_MEM_READ_ONLY, bytes, NULL, &err); in verify_results()
63 clMemWrapper rhs = clCreateBuffer(context, CL_MEM_READ_ONLY, bytes, NULL, &err); in verify_results()
224 clMemWrapper lhs = clCreateBuffer(context, CL_MEM_READ_ONLY, in_bytes, NULL, &err); in verify_saturated_results()
230 clMemWrapper rhs = clCreateBuffer(context, CL_MEM_READ_ONLY, in_bytes, NULL, &err); in verify_saturated_results()
333 clMemWrapper in = clCreateBuffer(context, CL_MEM_READ_ONLY, in_bytes, NULL, &err); in TEST_SATURATED_CONVERSION()
336 clMemWrapper out = clCreateBuffer(context, CL_MEM_READ_ONLY, out_bytes, NULL, &err); in TEST_SATURATED_CONVERSION()
Dtest_op_lifetime.cpp35 clMemWrapper lhs = clCreateBuffer(context, CL_MEM_READ_ONLY, bytes, NULL, &err); in test_op_lifetime()
41 clMemWrapper rhs = clCreateBuffer(context, CL_MEM_READ_ONLY, bytes, NULL, &err); in test_op_lifetime()
Dtest_op_branch_conditional.cpp35 clMemWrapper lhs = clCreateBuffer(context, CL_MEM_READ_ONLY, bytes, NULL, &err); in test_branch_conditional()
41 clMemWrapper rhs = clCreateBuffer(context, CL_MEM_READ_ONLY, bytes, NULL, &err); in test_branch_conditional()
Dtest_op_selection_merge.cpp35 clMemWrapper lhs = clCreateBuffer(context, CL_MEM_READ_ONLY, bytes, NULL, &err); in test_selection_merge()
41 clMemWrapper rhs = clCreateBuffer(context, CL_MEM_READ_ONLY, bytes, NULL, &err); in test_selection_merge()
Dtest_op_phi.cpp35 clMemWrapper lhs = clCreateBuffer(context, CL_MEM_READ_ONLY, bytes, NULL, &err); in test_phi()
41 clMemWrapper rhs = clCreateBuffer(context, CL_MEM_READ_ONLY, bytes, NULL, &err); in test_phi()
/external/skqp/tools/
Dhello-opencl.cpp90 cl::Buffer A(ctx, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR , sizeof(float)*a.size(), a.data()), in main()
91 B(ctx, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR , sizeof(float)*b.size(), b.data()), in main()
/external/OpenCL-CTS/test_conformance/images/clReadWriteImage/
Dtest_loops.cpp39 …ps?"mipmapped":"",convert_image_type_to_string(imageType), flags == CL_MEM_READ_ONLY ? "read" : "w… in test_image_type()
120 ret += test_image_type( device, context, queue, imageType, CL_MEM_READ_ONLY ); in test_image_set()
/external/OpenCL-CTS/test_conformance/images/kernel_image_methods/
Dtest_loops.cpp40 …only tests...\n", convert_image_type_to_string(imageType), flags == CL_MEM_READ_ONLY ? "read" : "w… in test_image_type()
120 ret += test_image_type( device, context, queue, imageType, CL_MEM_READ_ONLY ); in test_image_set()
/external/skia/tools/
Dhello-opencl.cpp88 A(ctx, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR , sizeof(float)*a.size(), a.data()), in main()
89 B(ctx, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR , sizeof(float)*b.size(), b.data()), in main()
/external/OpenCL-CTS/test_conformance/images/samplerlessReads/
Dtest_read_1D_buffer.cpp58 …cl_mem imageBuffer = clCreateBuffer( context, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR, imageInfo->… in test_read_image_1D_buffer()
69 image[0] = clCreateImage( context, CL_MEM_READ_ONLY, imageInfo->format, in test_read_image_1D_buffer()
93 …image[1] = clCreateImage( context, CL_MEM_READ_ONLY|CL_MEM_COPY_HOST_PTR, imageInfo->format, &imag… in test_read_image_1D_buffer()
/external/OpenCL-CTS/test_conformance/buffers/
Dtest_buffer_mem.cpp82 bool test_read_only = (flags & CL_MEM_READ_ONLY) != 0; in test_mem_flags()
226 return test_mem_flags(context, queue, num_elements, CL_MEM_READ_ONLY, in test_mem_read_only_flags()

123456