Home
last modified time | relevance | path

Searched refs:cl_long (Results 1 – 25 of 88) sorted by relevance

1234

/external/OpenCL-CTS/test_conformance/atomics/
Dtest_atomics.cpp60 cl_long mLongStartValue;
70cl_long (*ExpectedValueLongFn)( size_t size, cl_long *startRefValues, size_t whichDestValue );
71 void (*GenerateRefsLongFn)( size_t size, cl_long *startRefValues, MTdata d );
72 bool (*VerifyRefsLongFn)( size_t size, cl_long *refValues, cl_long finalValue );
225 testFns.GenerateRefsLongFn( threadSize, (cl_long *)startRefValues, d ); in test_atomic_function()
294 cl_long longVal; in test_atomic_function()
304 longVal = testFns.ExpectedValueLongFn( threadSize, (cl_long *)startRefValues, i ); in test_atomic_function()
326 cl_long *outValue = (cl_long *)( destItems + i * typeSize ); in test_atomic_function()
328 cl_long *startRefs = (cl_long *)startRefValues; in test_atomic_function()
329 cl_long *refs = (cl_long *)refValues; in test_atomic_function()
[all …]
/external/OpenCL-CTS/test_conformance/clcpp/integer_funcs/
Dnumeric_funcs.hpp325 !std::is_same<IN1, cl_long>::value && !std::is_same<IN1, cl_ulong>::value, in operator ()()
328 cl_long xl = static_cast<cl_long>(x); in operator ()()
329 cl_long yl = static_cast<cl_long>(y); in operator ()()
610 TEST_UNARY_FUNC_MACRO((int_func_abs<cl_long, cl_ulong>())) in AUTO_TEST_CASE()
616 TEST_BINARY_FUNC_MACRO((int_func_abs_diff<cl_long, cl_long, cl_ulong>())) in AUTO_TEST_CASE()
622 TEST_BINARY_FUNC_MACRO((int_func_add_sat<cl_long, cl_long, cl_long>())) in AUTO_TEST_CASE()
628 TEST_BINARY_FUNC_MACRO((int_func_hadd<cl_long, cl_long, cl_long>())) in AUTO_TEST_CASE()
634 TEST_BINARY_FUNC_MACRO((int_func_rhadd<cl_long, cl_long, cl_long>())) in AUTO_TEST_CASE()
640 TEST_TERNARY_FUNC_MACRO((int_func_clamp<cl_long, cl_long, cl_long, cl_long>())) in AUTO_TEST_CASE()
646 TEST_TERNARY_FUNC_MACRO((int_func_clamp<cl_long8, cl_long, cl_long, cl_long8>())) in AUTO_TEST_CASE()
[all …]
Dbitwise_funcs.hpp73 cl_long value = x; in operator ()()
196 TEST_UNARY_FUNC_MACRO((int_func_popcount<cl_long, cl_long>())) in AUTO_TEST_CASE()
201 TEST_UNARY_FUNC_MACRO((int_func_clz<cl_long, cl_long>())) in AUTO_TEST_CASE()
206 TEST_UNARY_FUNC_MACRO((int_func_ctz<cl_long, cl_long>())) in AUTO_TEST_CASE()
221 TEST_BINARY_FUNC_MACRO((int_func_upsample<cl_int, cl_uint, cl_long>())) in AUTO_TEST_CASE()
/external/OpenCL-CTS/test_conformance/integer_ops/
Dmain.cpp150 void fill_test_values( cl_long *outBufferA, cl_long *outBufferB, size_t numElements, MTdata d ) in fill_test_values()
152 …static const cl_long sUniqueValues[] = { 0x3333333333333333LL, 0x5555555555555555LL, 0x99999999999… in fill_test_values()
160 …static cl_long sSpecialValues[ 128 + 128 + 128 + ( sizeof( sUniqueValues ) / sizeof( sUniqueValues… in fill_test_values()
200 outBufferA[ i ] = ((cl_long)a <<33 | (cl_long)b) ^ ((cl_long)b << 16); in fill_test_values()
204 outBufferB[ i ] = ((cl_long)a <<33 | (cl_long)b) ^ ((cl_long)b << 16); in fill_test_values()
Dtest_integers.cpp57 cl_long inDataA[TEST_SIZE * 16], outData[TEST_SIZE * 16], inDataB[TEST_SIZE * 16], expected; in test_single_param_integer_kernel()
254 cl_long testValue; in verify_integer_clz()
285 testValue = *( (cl_long *)source ); in verify_integer_clz()
286 typeBits = 8 * sizeof( cl_long ); in verify_integer_clz()
327 *( (cl_long *)destination ) = count; in verify_integer_clz()
347 cl_long testValue; in verify_integer_ctz()
378 testValue = *( (cl_long *)source ); in verify_integer_ctz()
379 typeBits = 8 * sizeof( cl_long ); in verify_integer_ctz()
420 *( (cl_long *)destination ) = count; in verify_integer_ctz()
574 PATCH_CASE_SIGNED( outData, inDataA, inDataB, count, cl_long, CL_LONG_MIN ) in patchup_divide_results()
[all …]
/external/OpenCL-CTS/test_conformance/select/
Dutil_select.cpp38 sizeof(cl_float), sizeof(cl_ulong), sizeof(cl_long), sizeof( cl_double ) };
132 cl_long *d, *x, *y, *m; in refselect_1i64()
133 d = (cl_long*) dest; in refselect_1i64()
134 x = (cl_long*) src1; in refselect_1i64()
135 y = (cl_long*) src2; in refselect_1i64()
136 m = (cl_long*) cmp; in refselect_1i64()
144 cl_long *m; in refselect_1u64()
148 m = (cl_long*) cmp; in refselect_1u64()
224 cl_long *d, *x, *y; in refselect_1i64u()
226 d = (cl_long*) dest; in refselect_1i64u()
[all …]
/external/OpenCL-CTS/test_conformance/gl/
Dtest_buffers.cpp66 cl_long *longPtr = (cl_long *)outData; in gen_input_data()
69 longPtr[i] = (cl_long)genrand_int32(d) | ( (cl_ulong)genrand_int32(d) << 32 ); in gen_input_data()
130 size_t dataSize = numElements * 16 * sizeof(cl_long); in test_buffer_kernel()
132 cl_long inData[numElements * 16], outDataCL[numElements * 16], outDataGL[ numElements * 16 ]; in test_buffer_kernel()
134 cl_long* inData = (cl_long*)_malloca(dataSize); in test_buffer_kernel()
135 cl_long* outDataCL = (cl_long*)_malloca(dataSize); in test_buffer_kernel()
136 cl_long* outDataGL = (cl_long*)_malloca(dataSize); in test_buffer_kernel()
255 cl_long expectedCLValue, expectedGLValue; in test_buffer_kernel()
/external/OpenCL-CTS/test_conformance/gles/
Dtest_buffers.cpp69 cl_long *longPtr = (cl_long *)outData; in gen_input_data()
72 longPtr[i] = (cl_long)genrand_int32(d) | ( (cl_ulong)genrand_int32(d) << 32 ); in gen_input_data()
133 size_t dataSize = numElements * 16 * sizeof(cl_long); in test_buffer_kernel()
135 cl_long inData[numElements * 16], outDataCL[numElements * 16], outDataGL[ numElements * 16 ]; in test_buffer_kernel()
137 cl_long* inData = (cl_long*)_malloca(dataSize); in test_buffer_kernel()
138 cl_long* outDataCL = (cl_long*)_malloca(dataSize); in test_buffer_kernel()
139 cl_long* outDataGL = (cl_long*)_malloca(dataSize); in test_buffer_kernel()
256 cl_long expectedCLValue, expectedGLValue; in test_buffer_kernel()
/external/OpenCL-CTS/test_conformance/subgroups/
Dsubhelpers.h77 template <> struct TypeName<cl_long>
107 template <> struct TypeDef<cl_long>
166 template <> struct TypeIdentity<cl_long, 0>
168 static cl_long val() { return (cl_long)0; }
170 template <> struct TypeIdentity<cl_long, 1>
172 static cl_long val() { return (cl_long)0x8000000000000000ULL; }
174 template <> struct TypeIdentity<cl_long, 2>
176 static cl_long val() { return (cl_long)0x7fffffffffffffffULL; }
240 template <> struct TypeCheck<cl_long>
Dtest_workgroup.cpp654 error |= test<cl_long, BC<cl_long>, G, L>::run( in test_work_group_functions()
675 error |= test<cl_long, RED<cl_long, 0>, G, L>::run( in test_work_group_functions()
696 error |= test<cl_long, RED<cl_long, 1>, G, L>::run( in test_work_group_functions()
717 error |= test<cl_long, RED<cl_long, 2>, G, L>::run( in test_work_group_functions()
738 error |= test<cl_long, SCIN<cl_long, 0>, G, L>::run( in test_work_group_functions()
759 error |= test<cl_long, SCIN<cl_long, 1>, G, L>::run( in test_work_group_functions()
780 error |= test<cl_long, SCIN<cl_long, 2>, G, L>::run( in test_work_group_functions()
801 error |= test<cl_long, SCEX<cl_long, 0>, G, L>::run( in test_work_group_functions()
822 error |= test<cl_long, SCEX<cl_long, 1>, G, L>::run( in test_work_group_functions()
843 error |= test<cl_long, SCEX<cl_long, 2>, G, L>::run( in test_work_group_functions()
/external/OpenCL-CTS/test_conformance/spir/
Dtypeinfo.h146 … false, 0, 1, 0x0, 0x7fffffffffffffff, KernelArgGeneratorT<cl_long>)
147 … true, 0, 16, 0x0, 0x7fffffffffffffff, KernelArgGeneratorT<cl_long>)
148 … false, 0, 16, 0x0, 0x7fffffffffffffff, KernelArgGeneratorT<cl_long>)
149 … true, 0, 16, 0x0, 0x7fffffffffffffff, KernelArgGeneratorT<cl_long>)
150 … false, 0, 2, 0x0, 0x7fffffffffffffff, KernelArgGeneratorT<cl_long>)
151 … true, 0, 2, 0x0, 0x7fffffffffffffff, KernelArgGeneratorT<cl_long>)
152 … false, 0, 3, 0x0, 0x7fffffffffffffff, KernelArgGeneratorT<cl_long>)
153 … true, 0, 3, 0x0, 0x7fffffffffffffff, KernelArgGeneratorT<cl_long>)
154 … false, 0, 4, 0x0, 0x7fffffffffffffff, KernelArgGeneratorT<cl_long>)
155 … true, 0, 4, 0x0, 0x7fffffffffffffff, KernelArgGeneratorT<cl_long>)
[all …]
/external/OpenCL-CTS/test_conformance/conversions/
Dbasic_test_conversions.cpp71 sizeof( cl_ulong ), sizeof( cl_long ),
622 static void uchar2long( void *out, void *in){ ((cl_long*) out)[0] = ((cl_uchar*) in)[0]; } in uchar2long()
639 static void char2long( void *out, void *in){ ((cl_long*) out)[0] = ((cl_char*) in)[0]; } in char2long()
656 static void ushort2long( void *out, void *in){ ((cl_long*) out)[0] = ((cl_ushort*) in)[0]; } in ushort2long()
673 static void short2long( void *out, void *in){ ((cl_long*) out)[0] = ((cl_short*) in)[0]; } in short2long()
690 static void uint2long( void *out, void *in){ ((cl_long*) out)[0] = ((cl_uint*) in)[0]; } in uint2long()
707 static void int2long( void *out, void *in){ ((cl_long*) out)[0] = ((cl_int*) in)[0]; } in int2long()
736 static void float2long( void *out, void *in){ ((cl_long*) out)[0] = llrint_clamped( ((cl_float*) i… in float2long()
745 static void double2long( void *out, void *in){ ((cl_long*) out)[0] = (cl_long) rint(((cl_double*) i… in double2long()
757 cl_long sl = ((cl_long)l < 0) ? (cl_long)((l >> 1) | (l & 1)) : (cl_long)l; in ulong2float()
[all …]
/external/OpenCL-CTS/test_conformance/c11_atomics/
Dcommon.cpp73 return sizeof(cl_long); in Size()
198 template<> cl_long AtomicTypeExtendedInfo<cl_long>::MinValue() {return CL_LONG_MIN;} in MinValue()
205 template<> cl_long AtomicTypeExtendedInfo<cl_long>::MaxValue() {return CL_LONG_MAX;} in MaxValue()
/external/OpenCL-CTS/test_conformance/workgroups/
Dtest_wg_scan_exclusive_add.cpp118 verify_wg_scan_exclusive_add_long(cl_long *inptr, cl_long *outptr, size_t n, size_t wg_size) { in verify_wg_scan_exclusive_add_long()
121 cl_long s, lasts; in verify_wg_scan_exclusive_add_long()
376 cl_long *input_ptr[1], *p; in test_work_group_scan_exclusive_add_long()
377 cl_long *output_ptr; in test_work_group_scan_exclusive_add_long()
398 input_ptr[0] = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_scan_exclusive_add_long()
399 output_ptr = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_scan_exclusive_add_long()
400 …streams[0] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_scan_exclusive_add_long()
407 …streams[1] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_scan_exclusive_add_long()
420 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_long)*num_elements, (void *)inpu… in test_work_group_scan_exclusive_add_long()
447 memset_pattern4(output_ptr, &dead, sizeof(cl_long)*num_elements); in test_work_group_scan_exclusive_add_long()
[all …]
Dtest_wg_scan_inclusive_min.cpp114 verify_wg_scan_inclusive_min_long(cl_long *inptr, cl_long *outptr, size_t n, size_t wg_size) { in verify_wg_scan_inclusive_min_long()
119 cl_long min_ = 0x7fffffffffffffffULL; in verify_wg_scan_inclusive_min_long()
367 cl_long *input_ptr[1], *p; in test_work_group_scan_inclusive_min_long()
368 cl_long *output_ptr; in test_work_group_scan_inclusive_min_long()
389 input_ptr[0] = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_scan_inclusive_min_long()
390 output_ptr = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_scan_inclusive_min_long()
391 …streams[0] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_scan_inclusive_min_long()
398 …streams[1] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_scan_inclusive_min_long()
411 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_long)*num_elements, (void *)inpu… in test_work_group_scan_inclusive_min_long()
438 memset_pattern4(output_ptr, &dead, sizeof(cl_long)*num_elements); in test_work_group_scan_inclusive_min_long()
[all …]
Dtest_wg_scan_inclusive_max.cpp114 verify_wg_scan_inclusive_max_long(cl_long *inptr, cl_long *outptr, size_t n, size_t wg_size) { in verify_wg_scan_inclusive_max_long()
119 cl_long max_ = 0x8000000000000000ULL; in verify_wg_scan_inclusive_max_long()
367 cl_long *input_ptr[1], *p; in test_work_group_scan_inclusive_max_long()
368 cl_long *output_ptr; in test_work_group_scan_inclusive_max_long()
389 input_ptr[0] = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_scan_inclusive_max_long()
390 output_ptr = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_scan_inclusive_max_long()
391 …streams[0] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_scan_inclusive_max_long()
398 …streams[1] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_scan_inclusive_max_long()
411 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_long)*num_elements, (void *)inpu… in test_work_group_scan_inclusive_max_long()
438 memset_pattern4(output_ptr, &dead, sizeof(cl_long)*num_elements); in test_work_group_scan_inclusive_max_long()
[all …]
Dtest_wg_reduce.cpp114 verify_wg_reduce_add_long(cl_long *inptr, cl_long *outptr, size_t n, size_t wg_size) in verify_wg_reduce_add_long()
120 cl_long sum = 0; in verify_wg_reduce_add_long()
368 cl_long *input_ptr[1], *p; in test_work_group_reduce_add_long()
369 cl_long *output_ptr; in test_work_group_reduce_add_long()
390 input_ptr[0] = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_reduce_add_long()
391 output_ptr = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_reduce_add_long()
392 …streams[0] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_reduce_add_long()
399 …streams[1] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_reduce_add_long()
412 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_long)*num_elements, (void *)inpu… in test_work_group_reduce_add_long()
439 memset_pattern4(output_ptr, &dead, sizeof(cl_long)*num_elements); in test_work_group_reduce_add_long()
[all …]
Dtest_wg_scan_inclusive_add.cpp112 verify_wg_scan_inclusive_add_long(cl_long *inptr, cl_long *outptr, size_t n, size_t wg_size) in verify_wg_scan_inclusive_add_long()
115 cl_long s; in verify_wg_scan_inclusive_add_long()
365 cl_long *input_ptr[1], *p; in test_work_group_scan_inclusive_add_long()
366 cl_long *output_ptr; in test_work_group_scan_inclusive_add_long()
387 input_ptr[0] = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_scan_inclusive_add_long()
388 output_ptr = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_scan_inclusive_add_long()
389 …streams[0] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_scan_inclusive_add_long()
396 …streams[1] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_scan_inclusive_add_long()
409 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_long)*num_elements, (void *)inpu… in test_work_group_scan_inclusive_add_long()
436 memset_pattern4(output_ptr, &dead, sizeof(cl_long)*num_elements); in test_work_group_scan_inclusive_add_long()
[all …]
Dtest_wg_reduce_min.cpp114 verify_wg_reduce_min_long(cl_long *inptr, cl_long *outptr, size_t n, size_t wg_size) in verify_wg_reduce_min_long()
120 cl_long min = CL_ULONG_MAX; in verify_wg_reduce_min_long()
386 cl_long *input_ptr[1], *p; in test_work_group_reduce_min_long()
387 cl_long *output_ptr; in test_work_group_reduce_min_long()
417 input_ptr[0] = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_reduce_min_long()
418 output_ptr = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_reduce_min_long()
419 …streams[0] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_reduce_min_long()
426 …streams[1] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_reduce_min_long()
439 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_long)*num_elements, (void *)inpu… in test_work_group_reduce_min_long()
466 memset_pattern4(output_ptr, &dead, sizeof(cl_long)*num_elements); in test_work_group_reduce_min_long()
[all …]
Dtest_wg_reduce_max.cpp114 verify_wg_reduce_max_long(cl_long *inptr, cl_long *outptr, size_t n, size_t wg_size) in verify_wg_reduce_max_long()
120 cl_long max = CL_LONG_MIN; in verify_wg_reduce_max_long()
386 cl_long *input_ptr[1], *p; in test_work_group_reduce_max_long()
387 cl_long *output_ptr; in test_work_group_reduce_max_long()
417 input_ptr[0] = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_reduce_max_long()
418 output_ptr = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_reduce_max_long()
419 …streams[0] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_reduce_max_long()
426 …streams[1] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_reduce_max_long()
439 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_long)*num_elements, (void *)inpu… in test_work_group_reduce_max_long()
466 memset_pattern4(output_ptr, &dead, sizeof(cl_long)*num_elements); in test_work_group_reduce_max_long()
[all …]
Dtest_wg_scan_exclusive_max.cpp114 verify_wg_scan_exclusive_max_long(cl_long *inptr, cl_long *outptr, size_t n, size_t wg_size) { in verify_wg_scan_exclusive_max_long()
119 cl_long max_ = 0x8000000000000000ULL; in verify_wg_scan_exclusive_max_long()
385 cl_long *input_ptr[1], *p; in test_work_group_scan_exclusive_max_long()
386 cl_long *output_ptr; in test_work_group_scan_exclusive_max_long()
416 input_ptr[0] = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_scan_exclusive_max_long()
417 output_ptr = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_scan_exclusive_max_long()
418 …streams[0] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_scan_exclusive_max_long()
425 …streams[1] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_scan_exclusive_max_long()
438 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_long)*num_elements, (void *)inpu… in test_work_group_scan_exclusive_max_long()
465 memset_pattern4(output_ptr, &dead, sizeof(cl_long)*num_elements); in test_work_group_scan_exclusive_max_long()
[all …]
Dtest_wg_scan_exclusive_min.cpp115 verify_wg_scan_exclusive_min_long(cl_long *inptr, cl_long *outptr, size_t n, size_t wg_size) { in verify_wg_scan_exclusive_min_long()
120 cl_long min_ = 0x7fffffffffffffffULL; in verify_wg_scan_exclusive_min_long()
386 cl_long *input_ptr[1], *p; in test_work_group_scan_exclusive_min_long()
387 cl_long *output_ptr; in test_work_group_scan_exclusive_min_long()
417 input_ptr[0] = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_scan_exclusive_min_long()
418 output_ptr = (cl_long*)malloc(sizeof(cl_long) * num_elements); in test_work_group_scan_exclusive_min_long()
419 …streams[0] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_scan_exclusive_min_long()
426 …streams[1] = clCreateBuffer( context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_long) * num_el… in test_work_group_scan_exclusive_min_long()
439 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_long)*num_elements, (void *)inpu… in test_work_group_scan_exclusive_min_long()
466 memset_pattern4(output_ptr, &dead, sizeof(cl_long)*num_elements); in test_work_group_scan_exclusive_min_long()
[all …]
/external/OpenCL-CTS/test_conformance/basic/
Dtest_kernel_memory_alignment.cpp184 mem0 = clCreateBuffer(context, 0, sizeof(cl_long), NULL, &error); in test_kernel_memory_alignment()
186 mem2 = clCreateBuffer(context, 0, sizeof(cl_long)*2, NULL, &error); in test_kernel_memory_alignment()
188 mem3 = clCreateBuffer(context, 0, sizeof(cl_long)*4, NULL, &error); in test_kernel_memory_alignment()
190 mem4 = clCreateBuffer(context, 0, sizeof(cl_long)*4, NULL, &error); in test_kernel_memory_alignment()
192 mem8 = clCreateBuffer(context, 0, sizeof(cl_long)*8, NULL, &error); in test_kernel_memory_alignment()
194 mem16 = clCreateBuffer(context, 0, sizeof(cl_long)*16, NULL, &error); in test_kernel_memory_alignment()
268 memset(results_data, 0, sizeof(cl_long)*5); in test_kernel_memory_alignment()
269 …error = clEnqueueWriteBuffer(queue, results, CL_TRUE, 0, sizeof(cl_long)*6, results_data, 0, NULL,… in test_kernel_memory_alignment()
363 memset(results_data, 0, sizeof(cl_long)*5); in test_kernel_memory_alignment()
364 …error = clEnqueueWriteBuffer(queue, results, CL_TRUE, 0, sizeof(cl_long)*5, results_data, 0, NULL,… in test_kernel_memory_alignment()
[all …]
/external/OpenCL-CTS/test_common/harness/
Dconversions.cpp60 sprintf(string, "%lld", *((cl_long*)data)); in print_type_to_string()
96 sizeof( cl_long ), in get_explicit_type_size()
192 typedef cl_long Long;
879 cl_long *longPtr; in generate_random_data()
980 longPtr = (cl_long *)outData; in generate_random_data()
983 longPtr[i] = (cl_long)genrand_int32(d) | ( (cl_long)genrand_int32(d) << 32 ); in generate_random_data()
1010 cl_long u = (cl_long)genrand_int32(d) | ( (cl_long)genrand_int32(d) << 32 ); in generate_random_data()
1044 cl_long read_upscale_signed( void *inRaw, ExplicitType inType ) in read_upscale_signed()
1049 return (cl_long)( *( (cl_char *)inRaw ) ); in read_upscale_signed()
1052 return (cl_long)( *( (cl_uchar *)inRaw ) ); in read_upscale_signed()
[all …]
/external/OpenCL-CTS/test_conformance/api/
Dtest_null_buffer_arg.cpp118 cl_long* host_result = (cl_long*)malloc(NITEMS*sizeof(cl_long)); in test_setargs_and_execution()
120 sizeof(cl_long)*NITEMS, host_result, 0, NULL, NULL); in test_setargs_and_execution()
175 buffer_size = NITEMS*sizeof(cl_long); in test_null_buffer_arg()

1234