Home
last modified time | relevance | path

Searched refs:TEST_SIZE (Results 1 – 18 of 18) sorted by relevance

/external/igt-gpu-tools/tests/i915/
Dgem_set_tiling_vs_blt.c67 #define TEST_SIZE (1024*1024) macro
69 #define TEST_HEIGHT(stride) (TEST_SIZE/(stride))
72 uint32_t data[TEST_SIZE/4];
113 target_bo = drm_intel_bo_alloc(bufmgr, "target bo", TEST_SIZE, 4096); in do_test()
117 test_bo = drm_intel_bo_alloc(bufmgr, "tiled busy bo", TEST_SIZE, 4096); in do_test()
133 test_bo = drm_intel_bo_alloc(bufmgr, "busy bo", TEST_SIZE, 4096); in do_test()
143 drm_intel_bo_subdata(test_bo, 0, TEST_SIZE, data); in do_test()
147 memcpy(ptr, data, TEST_SIZE); in do_test()
174 test_bo = drm_intel_bo_alloc_for_render(bufmgr, "tiled busy bo", TEST_SIZE, 4096); in do_test()
200 memset(data, 0, TEST_SIZE); in do_test()
[all …]
Dgem_unfence_active_buffers.c60 #define TEST_SIZE (1024*1024) macro
63 uint32_t data[TEST_SIZE/4];
115 TEST_SIZE, 4096);
/external/OpenCL-CTS/test_conformance/multiple_device_context/
Dtest_multiple_devices.cpp34 #define TEST_SIZE 512 macro
47 cl_uint data[TEST_SIZE]; in test_device_set()
48 cl_uint outputData[TEST_SIZE]; in test_device_set()
49 cl_uint expectedResults[TEST_SIZE]; in test_device_set()
50 cl_uint expectedResultsOneDevice[MAX_DEVICES][TEST_SIZE]; in test_device_set()
67 …ld devices, %ld kernel executions.\n", queueCount, deviceCount, queueCount*num_elements/TEST_SIZE); in test_device_set()
91 for( i = 0; i < TEST_SIZE; i++ ) in test_device_set()
95 sizeof(cl_uint) * TEST_SIZE, data, &error); in test_device_set()
99 for( i = 0; i < TEST_SIZE; i++ ) { in test_device_set()
113 threads[0] = (size_t)TEST_SIZE; in test_device_set()
[all …]
Dtest_multiple_contexts.cpp60 #define TEST_SIZE 512 macro
178 TEST_SIZE * sizeof(cl_uint), NULL, &error); in CreateTestItem()
185 TEST_SIZE * sizeof(cl_uint), error); in CreateTestItem()
235 TEST_SIZE * sizeof(cl_uint), 0, NULL, NULL, &error); in UseTestItem()
246 for( j = 0; j < TEST_SIZE; j++ ) in UseTestItem()
266 TEST_SIZE * sizeof(cl_uint), 0, NULL, NULL, &error); in UseTestItem()
277 for( i = 0; i < TEST_SIZE; i++ ) in UseTestItem()
314 size_t work_size = TEST_SIZE; in UseTestItem()
330 TEST_SIZE * sizeof(cl_uint), 0, NULL, NULL, &error); in UseTestItem()
344 TEST_SIZE * sizeof(cl_uint), 0, NULL, NULL, &error); in UseTestItem()
[all …]
/external/u-boot/test/
Dbloblist.c25 TEST_SIZE = 10, enumerator
80 data = bloblist_add(TEST_TAG, TEST_SIZE); in bloblist_test_blob()
83 data = bloblist_find(TEST_TAG, TEST_SIZE); in bloblist_test_blob()
87 ut_asserteq_ptr(data, bloblist_ensure(TEST_TAG, TEST_SIZE)); in bloblist_test_blob()
89 rec2 = (struct bloblist_rec *)(data + ALIGN(TEST_SIZE, BLOBLIST_ALIGN)); in bloblist_test_blob()
92 ut_asserteq_ptr(data, bloblist_ensure(TEST_TAG, TEST_SIZE)); in bloblist_test_blob()
109 ut_asserteq_ptr(data, bloblist_ensure(TEST_TAG, TEST_SIZE)); in bloblist_test_bad_blob()
110 ut_asserteq_ptr(data, bloblist_ensure(TEST_TAG, TEST_SIZE)); in bloblist_test_bad_blob()
148 data = bloblist_add(TEST_TAG, TEST_SIZE); in bloblist_test_checksum()
171 data[TEST_SIZE]++; in bloblist_test_checksum()
/external/OpenCL-CTS/test_conformance/geometrics/
Dtest_geometrics.cpp89 #define TEST_SIZE (1 << 20) macro
169 BufferOwningPtr<cl_float> A(malloc(sizeof(cl_float) * TEST_SIZE * vecsize)); in test_geom_cross()
170 BufferOwningPtr<cl_float> B(malloc(sizeof(cl_float) * TEST_SIZE * vecsize)); in test_geom_cross()
171 BufferOwningPtr<cl_float> C(malloc(sizeof(cl_float) * TEST_SIZE * vecsize)); in test_geom_cross()
184 for( i = 0; i < TEST_SIZE * vecsize; i++ ) in test_geom_cross()
191 …text, (cl_mem_flags)(CL_MEM_COPY_HOST_PTR), sizeof(cl_float) * vecsize * TEST_SIZE, inDataA, NULL); in test_geom_cross()
197 …text, (cl_mem_flags)(CL_MEM_COPY_HOST_PTR), sizeof(cl_float) * vecsize * TEST_SIZE, inDataB, NULL); in test_geom_cross()
203 …er(context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_float) * vecsize * TEST_SIZE, NULL, NULL); in test_geom_cross()
218 threads[0] = TEST_SIZE; in test_geom_cross()
227 …error = clEnqueueReadBuffer( queue, streams[2], true, 0, sizeof( cl_float ) * TEST_SIZE * vecsize,… in test_geom_cross()
[all …]
Dtest_geometrics_double.cpp93 #define TEST_SIZE (1 << 20) macro
179 size = TEST_SIZE; in test_geom_cross_double()
180 bufSize = sizeof(cl_double) * TEST_SIZE * vecsize; in test_geom_cross_double()
302 BufferOwningPtr<cl_double> A(malloc(sizeof(cl_double) * TEST_SIZE * vecSize)); in test_twoToFloat_kernel_double()
303 BufferOwningPtr<cl_double> B(malloc(sizeof(cl_double) * TEST_SIZE * vecSize)); in test_twoToFloat_kernel_double()
304 BufferOwningPtr<cl_double> C(malloc(sizeof(cl_double) * TEST_SIZE)); in test_twoToFloat_kernel_double()
319 for( i = 0; i < TEST_SIZE * vecSize; i++ ) in test_twoToFloat_kernel_double()
327 …ext, (cl_mem_flags)(CL_MEM_COPY_HOST_PTR), sizeof(cl_double) * vecSize * TEST_SIZE, inDataA, NULL); in test_twoToFloat_kernel_double()
333 …ext, (cl_mem_flags)(CL_MEM_COPY_HOST_PTR), sizeof(cl_double) * vecSize * TEST_SIZE, inDataB, NULL); in test_twoToFloat_kernel_double()
339 …reateBuffer(context, (cl_mem_flags)(CL_MEM_READ_WRITE), sizeof(cl_double) * TEST_SIZE, NULL, NULL); in test_twoToFloat_kernel_double()
[all …]
/external/OpenCL-CTS/test_conformance/relationals/
Dtest_comparisons_float.cpp20 #define TEST_SIZE 512 macro
94 generate_random_data( kFloat, vecSize * TEST_SIZE, d, outData ); in generate_equiv_test_data_float()
120 float inDataA[TEST_SIZE * 16], inDataB[ TEST_SIZE * 16 ]; in test_equiv_kernel_float()
121 int outData[TEST_SIZE * 16], expected[16]; in test_equiv_kernel_float()
161 …t, (cl_mem_flags)(CL_MEM_COPY_HOST_PTR), sizeof( cl_float ) * vecSize * TEST_SIZE, &inDataA, &erro… in test_equiv_kernel_float()
167 …t, (cl_mem_flags)(CL_MEM_COPY_HOST_PTR), sizeof( cl_float ) * vecSize * TEST_SIZE, &inDataB, &erro… in test_equiv_kernel_float()
173 …streams[2] = clCreateBuffer( context, CL_MEM_READ_WRITE, sizeof( cl_int ) * vecSize * TEST_SIZE, N… in test_equiv_kernel_float()
179 …streams[3] = clCreateBuffer( context, CL_MEM_READ_WRITE, sizeof( cl_int ) * vecSize * TEST_SIZE, N… in test_equiv_kernel_float()
199 threads[0] = TEST_SIZE; in test_equiv_kernel_float()
208 …error = clEnqueueReadBuffer( queue, streams[2], true, 0, sizeof( int ) * TEST_SIZE * vecSize, outD… in test_equiv_kernel_float()
[all …]
Dtest_comparisons_double.cpp20 #define TEST_SIZE 512 macro
88 generate_random_data( kDouble, vecSize * TEST_SIZE, d, outData ); in generate_equiv_test_data_double()
114 double inDataA[TEST_SIZE * 16], inDataB[ TEST_SIZE * 16 ]; in test_equiv_kernel_double()
115 cl_long outData[TEST_SIZE * 16], expected[16]; in test_equiv_kernel_double()
154 …, (cl_mem_flags)(CL_MEM_COPY_HOST_PTR), sizeof( cl_double ) * vecSize * TEST_SIZE, &inDataA, &erro… in test_equiv_kernel_double()
160 …, (cl_mem_flags)(CL_MEM_COPY_HOST_PTR), sizeof( cl_double ) * vecSize * TEST_SIZE, &inDataB, &erro… in test_equiv_kernel_double()
166 …clCreateBuffer( context, CL_MEM_READ_WRITE, sizeof( cl_long ) * vecSize * TEST_SIZE, NULL, &error); in test_equiv_kernel_double()
172 …clCreateBuffer( context, CL_MEM_READ_WRITE, sizeof( cl_long ) * vecSize * TEST_SIZE, NULL, &error); in test_equiv_kernel_double()
192 threads[0] = TEST_SIZE; in test_equiv_kernel_double()
201 …error = clEnqueueReadBuffer( queue, streams[2], true, 0, sizeof( cl_long ) * TEST_SIZE * vecSize, … in test_equiv_kernel_double()
[all …]
Dtest_relationals.cpp39 #define TEST_SIZE 512 macro
51 cl_long inDataA[TEST_SIZE * 16], clearData[TEST_SIZE * 16]; in test_any_all_kernel()
52 int outData[TEST_SIZE]; in test_any_all_kernel()
89 generate_random_data( vecType, TEST_SIZE * g_vector_aligns[vecSize], d, inDataA ); in test_any_all_kernel()
92 …ST_PTR), get_explicit_type_size( vecType ) * g_vector_aligns[vecSize] * TEST_SIZE, &inDataA, &erro… in test_any_all_kernel()
98 …ags)(CL_MEM_COPY_HOST_PTR), sizeof(cl_int) * g_vector_aligns[vecSize] * TEST_SIZE, clearData, &err… in test_any_all_kernel()
112 threads[0] = TEST_SIZE; in test_any_all_kernel()
121 …error = clEnqueueReadBuffer( queue, streams[1], true, 0, sizeof( int ) * TEST_SIZE, outData, 0, NU… in test_any_all_kernel()
125 for( i = 0; i < TEST_SIZE; i++ ) in test_any_all_kernel()
307 cl_long inDataA[TEST_SIZE * 16], inDataB[ TEST_SIZE * 16 ], inDataC[ TEST_SIZE * 16 ]; in test_select_kernel()
[all …]
/external/OpenCL-CTS/test_conformance/integer_ops/
Dtest_unary_ops.cpp19 #define TEST_SIZE 512 macro
56 cl_long inData[TEST_SIZE * 16], outData[TEST_SIZE * 16]; in test_unary_op()
57 cl_char controlData[TEST_SIZE]; in test_unary_op()
92 generate_random_data( vecType, vecSize * TEST_SIZE, d, inData ); in test_unary_op()
94 get_explicit_type_size( vecType ) * vecSize * TEST_SIZE, in test_unary_op()
99 for( i = 0; i < TEST_SIZE; i++ ) in test_unary_op()
125 threads[0] = TEST_SIZE; in test_unary_op()
136 get_explicit_type_size( vecType ) * TEST_SIZE * vecSize, in test_unary_op()
141 return verifyFn( outData, inData, vecSize, TEST_SIZE, controlData ); in test_unary_op()
Dtest_integers.cpp19 #define TEST_SIZE 512 macro
57 cl_long inDataA[TEST_SIZE * 16], outData[TEST_SIZE * 16], inDataB[TEST_SIZE * 16], expected; in test_single_param_integer_kernel()
98 generate_random_data( vecType, vecSize * TEST_SIZE, d, inDataA ); in test_single_param_integer_kernel()
101 get_explicit_type_size( vecType ) * vecSize * TEST_SIZE, in test_single_param_integer_kernel()
112 generate_random_data( vecType, vecSize * TEST_SIZE, d, inDataB ); in test_single_param_integer_kernel()
115 get_explicit_type_size( vecType ) * vecSize * TEST_SIZE, in test_single_param_integer_kernel()
130 threads[0] = TEST_SIZE; in test_single_param_integer_kernel()
138 memset(outData, 0xFF, get_explicit_type_size( vecType ) * TEST_SIZE * vecSize ); in test_single_param_integer_kernel()
142 get_explicit_type_size( vecType ) * TEST_SIZE * vecSize, in test_single_param_integer_kernel()
148 patchup_divide_results( outData, inDataA, inDataB, TEST_SIZE * vecSize, vecType ); in test_single_param_integer_kernel()
[all …]
/external/python/cpython3/Modules/_decimal/tests/
Drandfloat.py8 TEST_SIZE = 2 variable
20 for i in range(10 * TEST_SIZE):
57 for j in range(TEST_SIZE):
93 for i in range(TEST_SIZE):
108 for j in range(TEST_SIZE):
116 for i in range(100 * TEST_SIZE):
130 for j in range(TEST_SIZE):
/external/OpenCL-CTS/test_conformance/device_partition/
Dtest_device_partition.cpp41 #define TEST_SIZE 512 macro
217 int data[TEST_SIZE]; in test_device_set()
218 int outputData[TEST_SIZE]; in test_device_set()
219 int expectedResults[TEST_SIZE]; in test_device_set()
220 int *expectedResultsOneDeviceArray = new int[deviceCount * TEST_SIZE]; in test_device_set()
226 expectedResultsOneDevice[i] = expectedResultsOneDeviceArray + (i * TEST_SIZE); in test_device_set()
238 …ld devices, %ld kernel executions.\n", queueCount, deviceCount, queueCount*num_elements/TEST_SIZE); in test_device_set()
265 for( i = 0; i < TEST_SIZE; i++ ) in test_device_set()
268 …ateBuffer(context, (cl_mem_flags)(CL_MEM_COPY_HOST_PTR), sizeof(cl_int) * TEST_SIZE, data, &error); in test_device_set()
272 for( i = 0; i < TEST_SIZE; i++ ) { in test_device_set()
[all …]
/external/OpenCL-CTS/test_conformance/api/
Dtest_create_kernels.cpp494 #define TEST_SIZE 1000 macro
506 global_dim[0] = TEST_SIZE; in test_repeated_setup_cleanup()
511 inData = (cl_int*)malloc(sizeof(cl_int)*TEST_SIZE); in test_repeated_setup_cleanup()
512 outData = (cl_int*)malloc(sizeof(cl_int)*TEST_SIZE); in test_repeated_setup_cleanup()
513 for (i=0; i<TEST_SIZE; i++) { in test_repeated_setup_cleanup()
519 memset(outData, 0, sizeof(cl_int)*TEST_SIZE); in test_repeated_setup_cleanup()
533 …local_mem_in = clCreateBuffer(local_context, CL_MEM_READ_ONLY, TEST_SIZE*sizeof(cl_int), NULL, &er… in test_repeated_setup_cleanup()
536 …local_mem_out = clCreateBuffer(local_context, CL_MEM_WRITE_ONLY, TEST_SIZE*sizeof(cl_int), NULL, &… in test_repeated_setup_cleanup()
539 …error = clEnqueueWriteBuffer(local_queue, local_mem_in, CL_TRUE, 0, TEST_SIZE*sizeof(cl_int), inDa… in test_repeated_setup_cleanup()
542 …error = clEnqueueWriteBuffer(local_queue, local_mem_out, CL_TRUE, 0, TEST_SIZE*sizeof(cl_int), out… in test_repeated_setup_cleanup()
[all …]
/external/OpenCL-CTS/test_conformance/events/
Dtest_event_dependencies.cpp34 #define TEST_SIZE 10000 macro
50 size_t threads[3] = {TEST_SIZE,0,0}; in test_event_enqueue_wait_for_events_run_test()
53 int max_count = TEST_SIZE; in test_event_enqueue_wait_for_events_run_test()
163 … data = clCreateBuffer(context_to_use, CL_MEM_READ_WRITE, TEST_SIZE*sizeof(cl_int), NULL, &error); in test_event_enqueue_wait_for_events_run_test()
168 cl_int *values = (cl_int*)malloc(TEST_SIZE*sizeof(cl_int)); in test_event_enqueue_wait_for_events_run_test()
169 for (i=0; i<(int)TEST_SIZE; i++) in test_event_enqueue_wait_for_events_run_test()
171 …error = clEnqueueWriteBuffer(queues[0], data, CL_TRUE, 0, TEST_SIZE*sizeof(cl_int), values, 0, NUL… in test_event_enqueue_wait_for_events_run_test()
211 for (i=0; i<(int)TEST_SIZE; i++) in test_event_enqueue_wait_for_events_run_test()
213 …error = clEnqueueWriteBuffer(queues[0], data, CL_FALSE, 0, TEST_SIZE*sizeof(cl_int), values, 0, NU… in test_event_enqueue_wait_for_events_run_test()
329 …error = clEnqueueReadBuffer(queues[0], data, CL_TRUE, 0, TEST_SIZE*sizeof(cl_int), values, 1, &eve… in test_event_enqueue_wait_for_events_run_test()
[all …]
/external/python/cpython3/Lib/test/
Dtest_strtod.py84 TEST_SIZE = 10 variable
115 for i in range(TEST_SIZE):
151 for i in range(100 * TEST_SIZE):
201 for j in range(TEST_SIZE):
209 for i in range(10 * TEST_SIZE):
223 for j in range(TEST_SIZE):
/external/python/cpython2/Lib/test/
Dtest_strtod.py85 TEST_SIZE = 10 variable
116 for i in xrange(TEST_SIZE):
152 for i in xrange(100 * TEST_SIZE):
202 for j in xrange(TEST_SIZE):
210 for i in xrange(10 * TEST_SIZE):
224 for j in xrange(TEST_SIZE):