Home
last modified time | relevance | path

Searched refs:cl_double (Results 1 – 25 of 60) sorted by relevance

123

/external/OpenCL-CTS/test_conformance/geometrics/
Dtest_geometrics_double.cpp115 static const cl_double trickyValues[] = { -FLT_EPSILON, FLT_EPSILON, in fillWithTrickyNumbers_double()
180 bufSize = sizeof(cl_double) * TEST_SIZE * vecsize; in test_geom_cross_double()
184 bufSize = sizeof(cl_double) * size * vecsize; in test_geom_cross_double()
191 cl_double testVector[4]; in test_geom_cross_double()
194 BufferOwningPtr<cl_double> A(malloc(bufSize)); in test_geom_cross_double()
195 BufferOwningPtr<cl_double> B(malloc(bufSize)); in test_geom_cross_double()
196 BufferOwningPtr<cl_double> C(malloc(bufSize)); in test_geom_cross_double()
197 cl_double *inDataA = A; in test_geom_cross_double()
198 cl_double *inDataB = B; in test_geom_cross_double()
199 cl_double *outData = C; in test_geom_cross_double()
[all …]
/external/OpenCL-CTS/test_conformance/commonfns/
Dtest_stepf.cpp347 verify_step_double(cl_double *inptrA, cl_double *inptrB, cl_double *outptr, int n, int veclen) in verify_step_double()
370 cl_double *input_ptr[2], *output_ptr, *p; in test_stepf_double()
380 input_ptr[0] = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_stepf_double()
381 input_ptr[1] = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_stepf_double()
382 output_ptr = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_stepf_double()
384 sizeof(cl_double) * num_elements, NULL, NULL); in test_stepf_double()
391 sizeof(cl_double) * num_elements, NULL, NULL); in test_stepf_double()
398 sizeof(cl_double) * num_elements, NULL, NULL); in test_stepf_double()
416 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_double)*num_elements, (void *)in… in test_stepf_double()
422 …err = clEnqueueWriteBuffer( queue, streams[1], true, 0, sizeof(cl_double)*num_elements, (void *)in… in test_stepf_double()
[all …]
Dtest_step.cpp365 cl_double *input_ptr[2], *output_ptr, *p; in test_step_double()
376 input_ptr[0] = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_step_double()
377 input_ptr[1] = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_step_double()
378 output_ptr = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_step_double()
380 sizeof(cl_double) * num_elements, NULL, NULL); in test_step_double()
387 sizeof(cl_double) * num_elements, NULL, NULL); in test_step_double()
394 sizeof(cl_double) * num_elements, NULL, NULL); in test_step_double()
414 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_double)*num_elements, (void *)in… in test_step_double()
420 …err = clEnqueueWriteBuffer( queue, streams[1], true, 0, sizeof(cl_double)*num_elements, (void *)in… in test_step_double()
471 …err = clEnqueueReadBuffer( queue, streams[2], true, 0, sizeof(cl_double)*num_elements, (void *)out… in test_step_double()
Dtest_binary_fn.cpp58 cl_double *input_ptr_double[2], *output_ptr_double=NULL; in test_binary_fn()
82 if (test_double) input_ptr_double[i] = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_binary_fn()
85 if (test_double) output_ptr_double = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_binary_fn()
100 sizeof(cl_double) * num_elements, NULL, &err); in test_binary_fn()
124 …err = clEnqueueWriteBuffer( queue, streams[ 3 + i ], CL_TRUE, 0, sizeof( cl_double ) * num_element… in test_binary_fn()
219 …err = clEnqueueReadBuffer( queue, streams[5], CL_TRUE, 0, sizeof(cl_double)*num_elements, (void *)… in test_binary_fn()
Dtest_sign.cpp322 cl_double *input_ptr[1], *output_ptr, *p; in test_sign_double()
334 input_ptr[0] = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_sign_double()
335 output_ptr = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_sign_double()
337 sizeof(cl_double) * num_elements, NULL, NULL); in test_sign_double()
345 sizeof(cl_double) * num_elements, NULL, NULL); in test_sign_double()
360 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_double)*num_elements, (void *)in… in test_sign_double()
409 …err = clEnqueueReadBuffer( queue, streams[1], true, 0, sizeof(cl_double)*num_elements, (void *)out… in test_sign_double()
Dtest_degrees.cpp346 cl_double *input_ptr[1], *output_ptr, *p; in test_degrees_double()
362 input_ptr[0] = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_degrees_double()
363 output_ptr = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_degrees_double()
365 sizeof(cl_double) * num_elements, NULL, NULL); in test_degrees_double()
373 sizeof(cl_double) * num_elements, NULL, NULL); in test_degrees_double()
387 …err = clEnqueueWriteBuffer( queue, streams[0], true, 0, sizeof(cl_double)*num_elements, (void *)in… in test_degrees_double()
439 memset_pattern4(output_ptr, &dead, sizeof(cl_double)*num_elements); in test_degrees_double()
440 …err = clEnqueueReadBuffer( queue, streams[1], true, 0, sizeof(cl_double)*num_elements, (void *)out… in test_degrees_double()
Dtest_clamp.cpp121 cl_double *input_ptr_double[3], *output_ptr_double = NULL; in test_clamp()
147 if (test_double) input_ptr_double[i] = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_clamp()
150 if (test_double) output_ptr_double = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_clamp()
169 sizeof(cl_double) * num_elements, NULL, NULL); in test_clamp()
198 …err = clEnqueueWriteBuffer( queue, streams[ 4 + i ], CL_TRUE, 0, sizeof( cl_double ) * num_element… in test_clamp()
270 …err = clEnqueueReadBuffer( queue, streams[7], CL_TRUE, 0, sizeof(cl_double)*num_elements, (void *)… in test_clamp()
Dtest_radians.cpp347 cl_double *input_ptr[1], *output_ptr, *p; in test_radians_double()
364 input_ptr[0] = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_radians_double()
365 output_ptr = (cl_double*)malloc(sizeof(cl_double) * num_elements); in test_radians_double()
367 sizeof(cl_double) * num_elements, NULL, NULL); in test_radians_double()
375 sizeof(cl_double) * num_elements, NULL, NULL); in test_radians_double()
439 memset_pattern4(output_ptr, &dead, sizeof(cl_double)*num_elements); in test_radians_double()
440 …err = clEnqueueReadBuffer( queue, streams[1], true, 0, sizeof(cl_double)*num_elements, (void *)out… in test_radians_double()
/external/OpenCL-CTS/test_conformance/math_brute_force/
Dunary_double.cpp165 logFunctionInfo(f->name, sizeof(cl_double), relaxedMode); in TestFunc_Double_Double()
170 / (sizeof(cl_double) * RoundUpToNextPowerOfTwo(test_info.threadCount)); in TestFunc_Double_Double()
171 test_info.scale = getTestScale(sizeof(cl_double)); in TestFunc_Double_Double()
217 i * test_info.subBufferSize * sizeof(cl_double), in TestFunc_Double_Double()
218 test_info.subBufferSize * sizeof(cl_double) in TestFunc_Double_Double()
325 size_t buffer_size = buffer_elements * sizeof(cl_double); in Test()
356 cl_double *p = (cl_double *)gIn + thread_id * buffer_elements; in Test()
427 cl_double *r = (cl_double *)gOut_Ref + thread_id * buffer_elements; in Test()
428 cl_double *s = (cl_double *)p; in Test()
430 r[j] = (cl_double)func.f_f(s[j]); in Test()
[all …]
Dbinary_operator_double.cpp291 logFunctionInfo(f->name, sizeof(cl_double), relaxedMode); in TestFunc_Double_Double_Double_Operator()
297 / (sizeof(cl_double) * RoundUpToNextPowerOfTwo(test_info.threadCount)); in TestFunc_Double_Double_Double_Operator()
298 test_info.scale = getTestScale(sizeof(cl_double)); in TestFunc_Double_Double_Double_Operator()
343 i * test_info.subBufferSize * sizeof(cl_double), in TestFunc_Double_Double_Double_Operator()
344 test_info.subBufferSize * sizeof(cl_double) in TestFunc_Double_Double_Double_Operator()
466 size_t buffer_size = buffer_elements * sizeof(cl_double); in Test()
476 cl_double *r; in Test()
477 cl_double *s; in Test()
478 cl_double *s2; in Test()
510 cl_double *fp = (cl_double *)p; in Test()
[all …]
Di_unary_double.cpp126 uint64_t step = getTestStep(sizeof(cl_double), BUFFER_SIZE); in TestFunc_Int_Double()
128 (int)((1ULL << 32) / (16 * BUFFER_SIZE / sizeof(cl_double)) + 1); in TestFunc_Int_Double()
130 logFunctionInfo(f->name, sizeof(cl_double), relaxedMode); in TestFunc_Int_Double()
155 for (size_t j = 0; j < BUFFER_SIZE / sizeof(cl_double); j++) in TestFunc_Int_Double()
160 for (size_t j = 0; j < BUFFER_SIZE / sizeof(cl_double); j++) in TestFunc_Int_Double()
189 size_t vectorSize = sizeValues[j] * sizeof(cl_double); in TestFunc_Int_Double()
220 for (size_t j = 0; j < BUFFER_SIZE / sizeof(cl_double); j++) in TestFunc_Int_Double()
239 for (size_t j = 0; j < BUFFER_SIZE / sizeof(cl_double); j++) in TestFunc_Int_Double()
Dbinary_double.cpp293 logFunctionInfo(f->name, sizeof(cl_double), relaxedMode); in TestFunc_Double_Double_Double()
299 / (sizeof(cl_double) * RoundUpToNextPowerOfTwo(test_info.threadCount)); in TestFunc_Double_Double_Double()
300 test_info.scale = getTestScale(sizeof(cl_double)); in TestFunc_Double_Double_Double()
349 i * test_info.subBufferSize * sizeof(cl_double), in TestFunc_Double_Double_Double()
350 test_info.subBufferSize * sizeof(cl_double) in TestFunc_Double_Double_Double()
472 size_t buffer_size = buffer_elements * sizeof(cl_double); in Test()
484 cl_double *r; in Test()
485 cl_double *s; in Test()
486 cl_double *s2; in Test()
518 cl_double *fp = (cl_double *)p; in Test()
[all …]
Dbinary_i_double.cpp295 logFunctionInfo(f->name, sizeof(cl_double), relaxedMode); in TestFunc_Double_Double_Int()
301 / (sizeof(cl_double) * RoundUpToNextPowerOfTwo(test_info.threadCount)); in TestFunc_Double_Double_Int()
302 test_info.scale = getTestScale(sizeof(cl_double)); in TestFunc_Double_Double_Int()
347 i * test_info.subBufferSize * sizeof(cl_double), in TestFunc_Double_Double_Int()
348 test_info.subBufferSize * sizeof(cl_double) in TestFunc_Double_Double_Int()
473 size_t buffer_size = buffer_elements * sizeof(cl_double); in Test()
483 cl_double *r; in Test()
484 cl_double *s; in Test()
517 cl_double *fp = (cl_double *)p; in Test()
623 r = (cl_double *)gOut_Ref + thread_id * buffer_elements; in Test()
[all …]
Dmacro_unary_double.cpp155 logFunctionInfo(f->name, sizeof(cl_double), relaxedMode); in TestMacro_Int_Double()
161 / (sizeof(cl_double) * RoundUpToNextPowerOfTwo(test_info.threadCount)); in TestMacro_Int_Double()
162 test_info.scale = getTestScale(sizeof(cl_double)); in TestMacro_Int_Double()
206 i * test_info.subBufferSize * sizeof(cl_double), in TestMacro_Int_Double()
207 test_info.subBufferSize * sizeof(cl_double) in TestMacro_Int_Double()
302 size_t buffer_size = buffer_elements * sizeof(cl_double); in Test()
333 cl_double *p = (cl_double *)gIn + thread_id * buffer_elements; in Test()
404 cl_double *s = (cl_double *)p; in Test()
Dunary_two_results_double.cpp137 uint64_t step = getTestStep(sizeof(cl_double), BUFFER_SIZE); in TestFunc_Double2_Double()
139 (int)((1ULL << 32) / (16 * BUFFER_SIZE / sizeof(cl_double)) + 1); in TestFunc_Double2_Double()
141 logFunctionInfo(f->name, sizeof(cl_double), relaxedMode); in TestFunc_Double2_Double()
161 for (size_t j = 0; j < BUFFER_SIZE / sizeof(cl_double); j++) in TestFunc_Double2_Double()
166 for (size_t j = 0; j < BUFFER_SIZE / sizeof(cl_double); j++) in TestFunc_Double2_Double()
204 size_t vectorSize = sizeValues[j] * sizeof(cl_double); in TestFunc_Double2_Double()
241 for (size_t j = 0; j < BUFFER_SIZE / sizeof(cl_double); j++) in TestFunc_Double2_Double()
Dunary_u_double.cpp135 uint64_t step = getTestStep(sizeof(cl_double), BUFFER_SIZE); in TestFunc_Double_ULong()
137 logFunctionInfo(f->name, sizeof(cl_double), relaxedMode); in TestFunc_Double_ULong()
183 size_t vectorSize = sizeValues[j] * sizeof(cl_double); in TestFunc_Double_ULong()
213 for (size_t j = 0; j < BUFFER_SIZE / sizeof(cl_double); j++) in TestFunc_Double_ULong()
232 for (size_t j = 0; j < BUFFER_SIZE / sizeof(cl_double); j++) in TestFunc_Double_ULong()
Dunary_two_results_i_double.cpp145 uint64_t step = getTestStep(sizeof(cl_double), BUFFER_SIZE); in TestFunc_DoubleI_Double()
147 (int)((1ULL << 32) / (16 * BUFFER_SIZE / sizeof(cl_double)) + 1); in TestFunc_DoubleI_Double()
149 logFunctionInfo(f->name, sizeof(cl_double), relaxedMode); in TestFunc_DoubleI_Double()
169 for (size_t j = 0; j < BUFFER_SIZE / sizeof(cl_double); j++) in TestFunc_DoubleI_Double()
174 for (size_t j = 0; j < BUFFER_SIZE / sizeof(cl_double); j++) in TestFunc_DoubleI_Double()
212 size_t vectorSize = sizeValues[j] * sizeof(cl_double); in TestFunc_DoubleI_Double()
Dmacro_binary_double.cpp277 logFunctionInfo(f->name, sizeof(cl_double), relaxedMode); in TestMacro_Int_Double_Double()
283 / (sizeof(cl_double) * RoundUpToNextPowerOfTwo(test_info.threadCount)); in TestMacro_Int_Double_Double()
284 test_info.scale = getTestScale(sizeof(cl_double)); in TestMacro_Int_Double_Double()
328 i * test_info.subBufferSize * sizeof(cl_double), in TestMacro_Int_Double_Double()
329 test_info.subBufferSize * sizeof(cl_double) in TestMacro_Int_Double_Double()
438 size_t buffer_size = buffer_elements * sizeof(cl_double); in Test()
448 cl_double *s; in Test()
449 cl_double *s2; in Test()
586 s = (cl_double *)gIn + thread_id * buffer_elements; in Test()
587 s2 = (cl_double *)gIn2 + thread_id * buffer_elements; in Test()
/external/OpenCL-CTS/test_conformance/spir/
Dtypeinfo.h32 … false, 0, 1, -0x40000000, 0x40000000, KernelArgGeneratorT<cl_double>)
33 … true, 0, 16, -0x40000000, 0x40000000, KernelArgGeneratorT<cl_double>)
34 … false, 0, 16, -0x40000000, 0x40000000, KernelArgGeneratorT<cl_double>)
35 … true, 0, 16, -0x40000000, 0x40000000, KernelArgGeneratorT<cl_double>)
36 … false, 0, 2, -0x40000000, 0x40000000, KernelArgGeneratorT<cl_double>)
37 … true, 0, 2, -0x40000000, 0x40000000, KernelArgGeneratorT<cl_double>)
38 … false, 0, 3, -0x40000000, 0x40000000, KernelArgGeneratorT<cl_double>)
39 … true, 0, 3, -0x40000000, 0x40000000, KernelArgGeneratorT<cl_double>)
40 … false, 0, 4, -0x40000000, 0x40000000, KernelArgGeneratorT<cl_double>)
41 … true, 0, 4, -0x40000000, 0x40000000, KernelArgGeneratorT<cl_double>)
[all …]
/external/OpenCL-CTS/test_conformance/spirv_new/
Dtypes.hpp44 VEC_NOT_EQ_FUNC(cl_double, 2)
45 VEC_NOT_EQ_FUNC(cl_double, 4)
83 template<> struct is_double<cl_double> { static const bool value = true; };
110 GENRAND_REAL_FUNC(cl_double, 2)
111 GENRAND_REAL_FUNC(cl_double, 4)
/external/OpenCL-CTS/dependencies/ocl-headers/CL/
Dcl_platform.h156 typedef double cl_double; typedef
238 #define CL_HUGE_VAL ((cl_double) 1e500)
258 typedef double cl_double;
344 #define CL_HUGE_VAL ((cl_double) 1e500)
426 typedef cl_double __cl_double2 __attribute__((vector_size(16)));
491 typedef cl_double __cl_double4 __attribute__((vector_size(32)));
1299 cl_double CL_ALIGNED(16) s[2];
1301 __CL_ANON_STRUCT__ struct{ cl_double x, y; };
1302 __CL_ANON_STRUCT__ struct{ cl_double s0, s1; };
1303 __CL_ANON_STRUCT__ struct{ cl_double lo, hi; };
[all …]
/external/angle/include/CL/
Dcl_platform.h156 typedef double cl_double; typedef
238 #define CL_HUGE_VAL ((cl_double) 1e500)
258 typedef double cl_double;
344 #define CL_HUGE_VAL ((cl_double) 1e500)
426 typedef cl_double __cl_double2 __attribute__((vector_size(16)));
491 typedef cl_double __cl_double4 __attribute__((vector_size(32)));
1299 cl_double CL_ALIGNED(16) s[2];
1301 __CL_ANON_STRUCT__ struct{ cl_double x, y; };
1302 __CL_ANON_STRUCT__ struct{ cl_double s0, s1; };
1303 __CL_ANON_STRUCT__ struct{ cl_double lo, hi; };
[all …]
/external/mesa3d/include/CL/
Dcl_platform.h136 typedef double cl_double; typedef
218 #define CL_HUGE_VAL ((cl_double) 1e500)
238 typedef double cl_double;
324 #define CL_HUGE_VAL ((cl_double) 1e500)
406 typedef cl_double __cl_double2 __attribute__((vector_size(16)));
471 typedef cl_double __cl_double4 __attribute__((vector_size(32)));
1279 cl_double CL_ALIGNED(16) s[2];
1281 __CL_ANON_STRUCT__ struct{ cl_double x, y; };
1282 __CL_ANON_STRUCT__ struct{ cl_double s0, s1; };
1283 __CL_ANON_STRUCT__ struct{ cl_double lo, hi; };
[all …]
/external/OpenCL-CTS/test_conformance/c11_atomics/
Dcommon.cpp197 template<> cl_double AtomicTypeExtendedInfo<cl_double>::MinValue() {return CL_DBL_MIN;} in MinValue()
204 template<> cl_double AtomicTypeExtendedInfo<cl_double>::MaxValue() {return CL_DBL_MAX;} in MaxValue()
/external/OpenCL-CTS/test_conformance/conversions/
Dbasic_test_conversions.cpp70 sizeof( cl_float ), sizeof( cl_double ),
715 static void float2double( void *out, void *in){ ((cl_double*) out)[0] = ((cl_float*) in)[0]; } in float2double()
738 static void double2uchar( void *out, void *in){ ((cl_uchar*) out)[0] = rint(((cl_double*) in)[0]); } in double2uchar()
739 static void double2char( void *out, void *in){ ((cl_char*) out)[0] = rint(((cl_double*) in)[0]); } in double2char()
740 static void double2ushort( void *out, void *in){ ((cl_ushort*) out)[0] = rint(((cl_double*) in)[0])… in double2ushort()
741 static void double2short( void *out, void *in){ ((cl_short*) out)[0] = rint(((cl_double*) in)[0]); } in double2short()
742 static void double2uint( void *out, void *in){ ((cl_uint*) out)[0] = (cl_uint) rint(((cl_double*) i… in double2uint()
743 static void double2int( void *out, void *in){ ((cl_int*) out)[0] = (int) rint(((cl_double*) in)[0])… in double2int()
744 static void double2float( void *out, void *in){ ((cl_float*) out)[0] = (float) ((cl_double*) in)[0]… in double2float()
745 static void double2ulong( void *out, void *in){ ((cl_ulong*) out)[0] = (cl_ulong) rint(((cl_double*… in double2ulong()
[all …]

123