Home
last modified time | relevance | path

Searched refs:cl_char (Results 1 – 25 of 63) sorted by relevance

123

/external/OpenCL-CTS/test_conformance/buffers/
Dtest_sub_buffers.cpp51 …ntext context, cl_command_queue queue, cl_char tag, SubBufferWrapper &buffer1, SubBufferWrapper &b…
77 …ntext context, cl_command_queue queue, cl_char tag, SubBufferWrapper &buffer1, SubBufferWrapper &b… in Execute()
79 cl_char *tempBuffer = (cl_char*)malloc(buffer1.mSize); in Execute()
116 …ntext context, cl_command_queue queue, cl_char tag, SubBufferWrapper &buffer1, SubBufferWrapper &b… in Execute()
139 …ntext context, cl_command_queue queue, cl_char tag, SubBufferWrapper &buffer1, SubBufferWrapper &b… in Execute()
149 cl_char *cPtr = (cl_char *)mappedPtr; in Execute()
169 …ntext context, cl_command_queue queue, cl_char tag, SubBufferWrapper &buffer1, SubBufferWrapper &b… in Execute()
247 cl_char * mainBufferContents = (cl_char*)calloc(1,mainSize); in test_sub_buffers_read_write_core()
248 cl_char * actualResults = (cl_char*)calloc(1,mainSize); in test_sub_buffers_read_write_core()
460 …el( cl_context context, cl_command_queue queue, cl_mem buffer, size_t length, cl_char *outResults ) in read_buffer_via_kernel()
[all …]
Dtest_buffer_fill.cpp475 cl_char *inptr = (cl_char *)ptr1; in verify_fill_char()
476 cl_char *outptr = (cl_char *)ptr2; in verify_fill_char()
1227 cl_char *inptr[5]; in test_buffer_fill_char()
1228 cl_char *hostptr[5]; in test_buffer_fill_char()
1229 cl_char *pattern[5]; in test_buffer_fill_char()
1240 ptrSizes[0] = sizeof(cl_char); in test_buffer_fill_char()
1253 pattern[i] = (cl_char *)malloc(ptrSizes[i]); in test_buffer_fill_char()
1257 inptr[i] = (cl_char *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill_char()
1265 hostptr[i] = (cl_char *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill_char()
1269 … if (test_buffer_fill( deviceID, context, queue, num_elements, sizeof( cl_char ), (char*)"char", in test_buffer_fill_char()
/external/OpenCL-CTS/test_conformance/spir/
Dtypeinfo.h20 … false, 0, 1, 0x0, 0x7f, KernelArgGeneratorT<cl_char>)
21 … true, 0, 16, 0x0, 0x7f, KernelArgGeneratorT<cl_char>)
22 … false, 0, 16, 0x0, 0x7f, KernelArgGeneratorT<cl_char>)
23 … true, 0, 16, 0x0, 0x7f, KernelArgGeneratorT<cl_char>)
24 … false, 0, 2, 0x0, 0x7f, KernelArgGeneratorT<cl_char>)
25 … true, 0, 2, 0x0, 0x7f, KernelArgGeneratorT<cl_char>)
26 … false, 0, 3, 0x0, 0x7f, KernelArgGeneratorT<cl_char>)
27 … true, 0, 3, 0x0, 0x7f, KernelArgGeneratorT<cl_char>)
28 … false, 0, 4, 0x0, 0x7f, KernelArgGeneratorT<cl_char>)
29 … true, 0, 4, 0x0, 0x7f, KernelArgGeneratorT<cl_char>)
[all …]
Ddatagen.h137 template<> ESINNS_PREF() cl_char ESINNS_POST()getNext(cl_char low, cl_char high) in ESINNS_PREF()
139 return (cl_char)get_random_size_t((size_t)low, (size_t)high, m_d); in ESINNS_PREF()
340 fillBuffer((cl_char *)pBuffer, allocSize );
353 void fillBuffer( cl_char * ptr, size_t nelem)
357 ptr[i] = gRG.getNext<cl_char>(m_minValue, m_maxValue);
364 cl_char m_minValue;
365 cl_char m_maxValue;
/external/OpenCL-CTS/test_conformance/select/
Dutil_select.cpp35 sizeof(cl_uchar), sizeof(cl_char),
60 cl_char *d, *x, *y, *m; in refselect_1i8()
61 d = (cl_char*) dest; in refselect_1i8()
62 x = (cl_char*) src1; in refselect_1i8()
63 y = (cl_char*) src2; in refselect_1i8()
64 m = (cl_char*) cmp; in refselect_1i8()
73 cl_char *m; in refselect_1u8()
77 m = (cl_char*) cmp; in refselect_1u8()
155 cl_char *d, *x, *y; in refselect_1i8u()
157 d = (cl_char*) dest; in refselect_1i8u()
[all …]
/external/OpenCL-CTS/test_conformance/basic/
Dtest_enqueue_map.cpp49 BufferOwningPtr<cl_char> hostPtrData{ malloc(bufferSize) }; in test_enqueue_map_buffer()
50 BufferOwningPtr<cl_char> referenceData{ malloc(bufferSize) }; in test_enqueue_map_buffer()
51 BufferOwningPtr<cl_char> finalData{malloc(bufferSize)}; in test_enqueue_map_buffer()
82cl_char *mappedRegion = (cl_char *)clEnqueueMapBuffer( queue, memObject, CL_TRUE, CL_MAP_READ | CL… in test_enqueue_map_buffer()
94 cl_char spin = (cl_char)genrand_int32( d ); in test_enqueue_map_buffer()
97 cl_char value = mappedRegion[ j ]; in test_enqueue_map_buffer()
Dtest_vloadstore.cpp90 char* outBuffer = (char*)_malloca(numLoads * typeSize * outVectorSize * sizeof(cl_char)); in test_vload()
91 char* referenceBuffer = (char*)_malloca(numLoads * typeSize * vecSize * sizeof(cl_char)); in test_vload()
148 …, streams[ 3 ], CL_TRUE, 0, numLoads * typeSize * outVectorSize * sizeof(cl_char), (void *)outBuff… in test_vload()
153 memset( referenceBuffer, 0, numLoads * typeSize * vecSize * sizeof(cl_char)); in test_vload()
548 char* inBuffer = (char*)_malloca( numStores * typeSize * vecSize * sizeof(cl_char)); in test_vstore()
554 char* referenceBuffer = (char*)_malloca(numElements * typeSize * vecSize * sizeof(cl_char)); in test_vstore()
596 …( context, CL_MEM_COPY_HOST_PTR, numStores * typeSize * vecSize * sizeof(cl_char), (void *)inBuffe… in test_vstore()
659 memset( referenceBuffer, 0, numElements * typeSize * vecSize * sizeof(cl_char) ); in test_vstore()
Dtest_basic_parameter_types.cpp179 cl_char c[16]={0,-1,2,-3,4,-5,6,-7,8,-9,10,-11,12,-13,14,-15}; in test_parameter_types()
188 size_t parameter_size = sizeof(cl_char) + sizeof(cl_uchar) + in test_parameter_types()
242 … case 0: error = clSetKernelArg(kernel, count, sizeof(cl_char)*sizes[size_to_test], &c); break; in test_parameter_types()
/external/OpenCL-CTS/test_conformance/SVM/
Dtest_allocate_shared_buffer.cpp74 cl_char *pBufData1 = (cl_char*) clSVMAlloc(context, flag_set[i], size, 0); in test_svm_allocate_shared_buffer()
85 cl_char *pBufData2 = NULL; in test_svm_allocate_shared_buffer()
92 …pBufData2 = (cl_char*) clEnqueueMapBuffer(queues[0], buf, CL_TRUE, flags, 0, size, 0, NULL,NULL, &… in test_svm_allocate_shared_buffer()
Dtest_byte_granularity.cpp75cl_char *pA = (cl_char*) clSVMAlloc(context, CL_MEM_READ_WRITE | CL_MEM_SVM_FINE_GRAIN_BUFFER, siz… in test_svm_byte_granularity()
/external/OpenCL-CTS/test_conformance/integer_ops/
Dtest_integers.cpp261 testValue = *( (cl_char *)source ); in verify_integer_clz()
262 typeBits = 8 * sizeof( cl_char ); in verify_integer_clz()
309 *( (cl_char *)destination ) = count; in verify_integer_clz()
354 testValue = *( (cl_char *)source ); in verify_integer_ctz()
355 typeBits = 8 * sizeof( cl_char ); in verify_integer_ctz()
402 *( (cl_char *)destination ) = count; in verify_integer_ctz()
556 PATCH_CASE_SIGNED( outData, inDataA, inDataB, count, cl_char, CL_CHAR_MIN ) in patchup_divide_results()
841 testValueA = *( (cl_char *)sourceA ); in verify_integer_hadd()
842 testValueB = *( (cl_char *)sourceB ); in verify_integer_hadd()
843 *( (cl_char *)destination ) = (cl_char)( ( testValueA + testValueB ) >> 1 ); in verify_integer_hadd()
[all …]
Dtest_unary_ops.cpp47 …VerifyFn)( void * actualPtr, void * inputPtr, size_t vecSize, size_t numVecs, cl_char * controls );
57 cl_char controlData[TEST_SIZE]; in test_unary_op()
144 …t VerifyFn( void * actualPtr, void * inputPtr, size_t vecSize, size_t numVecs, cl_char * controls ) in VerifyFn()
174 …OpVerifyFn verifys[] = { VerifyFn<cl_char>, VerifyFn<cl_uchar>, VerifyFn<cl_short>, VerifyFn<cl_us… in test_unary_op_set()
Dtest_int_basic_ops.cpp132 extern int verify_char(int test, size_t vector_size, cl_char *inptrA, cl_char *inptrB, cl_char *out…
133 extern void init_char_data(uint64_t indx, int num_elements, cl_char *input_ptr[], MTdata d) ;
635 …init_char_data(indx, num_elements * vectorSize, (cl_char**)(pThreadData->m_input_ptr), randDataIn); in test_integer_ops()
699 …err = verify_char(i, vectorSize, (cl_char*)pThreadData->m_input_ptr[0], (cl_char*)pThreadData->m_i… in test_integer_ops()
731 cl_char *inP = (cl_char *)pThreadData->m_input_ptr[0]; in test_integer_ops()
738 inP = (cl_char *)pThreadData->m_input_ptr[1]; in test_integer_ops()
744 inP = (cl_char *)pThreadData->m_output_ptr; in test_integer_ops()
751 inP = (cl_char *)pThreadData->m_input_ptr[0]; in test_integer_ops()
757 inP = (cl_char *)pThreadData->m_input_ptr[1]; in test_integer_ops()
763 inP = (cl_char *)pThreadData->m_output_ptr; in test_integer_ops()
[all …]
Dverification_and_generation_functions.cpp1274 verify_char(int test, size_t vector_size, cl_char *inptrA, cl_char *inptrB, cl_char *outptr, size_t… in verify_char()
1276 cl_char r; in verify_char()
1278 : (cl_int)(sizeof(cl_char)*8)-1; in verify_char()
1418 … the shift to get the final shift amount %d (0x%x).\n", (int)log2(sizeof(cl_char)*8), inptrB[i]&s… in verify_char()
1442 init_char_data(uint64_t indx, int num_elements, cl_char *input_ptr[], MTdata d) in init_char_data()
1444 … static const cl_char specialCaseList[] = { 0, -1, 1, CL_CHAR_MIN, CL_CHAR_MIN + 1, CL_CHAR_MAX }; in init_char_data()
1460 ((cl_char *)input_ptr[0])[j] = (cl_char) bits; in init_char_data()
1461 ((cl_char *)input_ptr[1])[j] = (cl_char) (bits >> 16); in init_char_data()
1470 ((cl_char *)input_ptr[0])[index] = specialCaseList[x]; in init_char_data()
1471 ((cl_char *)input_ptr[1])[index++] = specialCaseList[y]; in init_char_data()
Dtest_absdiff.cpp27 const cl_char *inA = (const cl_char *)p; in verify_absdiff_char()
28 const cl_char *inB = (const cl_char *)q; in verify_absdiff_char()
/external/OpenCL-CTS/test_conformance/conversions/
Dbasic_test_conversions.cpp67 sizeof( cl_uchar ), sizeof( cl_char ),
623 static void char2uchar( void *out, void *in){ ((cl_uchar*) out)[0] = ((cl_char*) in)[0]; } in char2uchar()
624 static void char2ushort( void *out, void *in){ ((cl_ushort*) out)[0] = ((cl_char*) in)[0]; } in char2ushort()
625 static void char2short( void *out, void *in){ ((short*) out)[0] = ((cl_char*) in)[0]; } in char2short()
626 static void char2uint( void *out, void *in){ ((cl_uint*) out)[0] = ((cl_char*) in)[0]; } in char2uint()
627 static void char2int( void *out, void *in){ ((int*) out)[0] = ((cl_char*) in)[0]; } in char2int()
630 cl_char l = ((cl_char*) in)[0]; in char2float()
635 cl_char l = ((cl_char*) in)[0]; in char2double()
638 static void char2ulong( void *out, void *in){ ((cl_ulong*) out)[0] = ((cl_char*) in)[0]; } in char2ulong()
639 static void char2long( void *out, void *in){ ((cl_long*) out)[0] = ((cl_char*) in)[0]; } in char2long()
[all …]
/external/mesa3d/include/CL/
Dcl_platform.h125 typedef signed __int8 cl_char; typedef
227 typedef int8_t cl_char;
399 typedef cl_char __cl_char16 __attribute__((vector_size(16)));
433 typedef cl_char __cl_char8 __attribute__((vector_size(8)));
530 cl_char CL_ALIGNED(2) s[2];
532 __CL_ANON_STRUCT__ struct{ cl_char x, y; };
533 __CL_ANON_STRUCT__ struct{ cl_char s0, s1; };
534 __CL_ANON_STRUCT__ struct{ cl_char lo, hi; };
543 cl_char CL_ALIGNED(4) s[4];
545 __CL_ANON_STRUCT__ struct{ cl_char x, y, z, w; };
[all …]
/external/OpenCL-CTS/test_conformance/spirv_new/
Dtest_op_undef.cpp71 TEST_UNDEF(char , cl_char ) in TEST_UNDEF()
100 typedef AbstractStruct2<cl_int, cl_char> CustomType; in TEST_SPIRV_FUNC()
106 typedef AbstractStruct2<cl_int, cl_char> CustomType1; in TEST_SPIRV_FUNC()
/external/OpenCL-CTS/test_conformance/clcpp/utils_common/
Dtype_supported.hpp37 ADD_SUPPORTED_TYPE(cl_char)
91 ADD_SUPPORTED_VEC_TYPE2(cl_char)
/external/OpenCL-CTS/test_conformance/pipes/
Dtest_pipe_limits.cpp121 cl_char *inptr = (cl_char *)ptr1; in verify_result()
122 cl_char *outptr = (cl_char *)ptr2; in verify_result()
272 cl_char *inptr; in test_pipe_max_packet_size()
314 inptr = (cl_char *)align_malloc(size, min_alignment); in test_pipe_max_packet_size()
Dtest_pipe_read_write.cpp310 cl_char *inptr = (cl_char *)ptr1; in verify_readwrite_char()
311 cl_char *outptr = (cl_char *)ptr2; in verify_readwrite_char()
910 cl_char *inptr[5]; in test_pipe_readwrite_char()
921 ptrSizes[0] = sizeof(cl_char); in test_pipe_readwrite_char()
928 inptr[i] = (cl_char *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_pipe_readwrite_char()
935 …err = test_pipe_readwrite( deviceID, context, queue, num_elements, sizeof( cl_char ), (char*)"char… in test_pipe_readwrite_char()
939 …err = test_pipe_readwrite( deviceID, context, queue, num_elements, sizeof( cl_char ), (char*)"char… in test_pipe_readwrite_char()
943 …err = test_pipe_readwrite( deviceID, context, queue, num_elements, sizeof( cl_char ), (char*)"char… in test_pipe_readwrite_char()
947 …err = test_pipe_readwrite( deviceID, context, queue, num_elements, sizeof( cl_char ), (char*)"char… in test_pipe_readwrite_char()
/external/OpenCL-CTS/test_common/gles/
Dhelpers.cpp66 …har * temp = (char *)malloc(width * height * 4 * get_explicit_type_size( type ) * sizeof(cl_char)); in CreateGLTexture2D()
280 cl_char *outBuffer = (cl_char *)malloc( outBytes ); in ReadGLTexture()
1013 cl_char *p = (cl_char *)malloc(count * sizeof(cl_char)); in CreateRandomData()
1018 p[ i ] = (cl_char)genrand_int32(d); in CreateRandomData()
1123 cl_char* p = (cl_char*)buffer; in DumpGLBuffer()
/external/OpenCL-CTS/test_common/harness/
Dconversions.cpp39 sprintf(string, "%d", (int)*((cl_char*)data)); in print_type_to_string()
87 sizeof( cl_char ), in get_explicit_type_size()
873 cl_char *charPtr; in generate_random_data()
905 charPtr = (cl_char *)outData; in generate_random_data()
913 charPtr[i] = (cl_char)( (cl_int)(bits & 255 ) - 127 ); in generate_random_data()
1049 return (cl_long)( *( (cl_char *)inRaw ) ); in read_upscale_signed()
1078 return (cl_ulong)( *( (cl_char *)inRaw ) ); in read_upscale_unsigned()
1107 return (float)( *( (cl_char *)inRaw ) ); in read_as_float()
1110 return (float)( *( (cl_char *)inRaw ) ); in read_as_float()
/external/OpenCL-CTS/test_conformance/clcpp/utils_test/
Dgenerate_inputs.hpp40 … || std::is_same<typename scalar_type<type>::type, cl_char>::value) in generate_input()
79 … || std::is_same<typename scalar_type<type>::type, cl_char>::value) in generate_input()
121 … && !(std::is_same<type, cl_uchar>::value || std::is_same<type, cl_char>::value) in generate_input()
149 … && (std::is_same<type, cl_uchar>::value || std::is_same<type, cl_char>::value) in generate_input()
/external/OpenCL-CTS/test_conformance/vec_align/
Dtest_vec_align.cpp91 newBufferStruct(bufSize, bufSize*sizeof(cl_uint)/sizeof(cl_char), pClState); in test_vec_internal()
313 sizeof(cl_char),
347 sizeof(cl_char),

123