Home
last modified time | relevance | path

Searched refs:arr_size (Results 1 – 22 of 22) sorted by relevance

/external/OpenCL-CTS/test_conformance/device_execution/
Dutils.h33 #define arr_size(a) (sizeof(a)/sizeof(a[0])) macro
36 #define KERNEL(name) { arr_size(name), name, #name }
Dhost_queue_order.cpp124 cl_uint num = arr_size(result); in test_host_queue_order()
137 context, &program1, &kernel1, arr_size(enqueue_block_first_kernel), in test_host_queue_order()
142 context, &program2, &kernel2, arr_size(enqueue_block_second_kernel), in test_host_queue_order()
Dnested_blocks.cpp346 for(k = 0; k < arr_size(sources_nested_blocks); ++k) in test_enqueue_nested_blocks()
351 …nel (%d of %d) ...\n", sources_nested_blocks[k].src.kernel_name, k + 1, arr_size(sources_nested_bl… in test_enqueue_nested_blocks()
354 …ernel_name, 0, MAX_GLOBAL_WORK_SIZE, kernel_results, sizeof(kernel_results), arr_size(args), args); in test_enqueue_nested_blocks()
367 log_error("ERROR: %d of %d kernels failed.\n", failCnt, arr_size(sources_nested_blocks)); in test_enqueue_nested_blocks()
Denqueue_block.cpp610 static const size_t num_kernels_enqueue_block = arr_size(sources_enqueue_block);
668 …else if((n = check_kernel_results(kernel_results, arr_size(kernel_results))) >= 0 && check_error(-… in test_enqueue_block()
Denqueue_ndrange.cpp354 static const size_t num_kernels_ndrange_Xd = arr_size(sources_ndrange_Xd);
701 …urces_ndrange_Xd[i].src.kernel_name, kernel_results, sizeof(kernel_results), arr_size(args), args); in test_enqueue_ndrange()
707 …else if((k = check_kernel_results(kernel_results, arr_size(kernel_results))) >= 0 && check_error(-… in test_enqueue_ndrange()
Denqueue_multi_queue.cpp188 …else if((k = check_kernel_results(kernel_results, arr_size(kernel_results))) >= 0 && check_error(-… in test_enqueue_multi_queue()
Denqueue_flags.cpp671 static const size_t num_enqueue_block_flags = arr_size(sources_enqueue_block_flags);
725 …ernel_name, local_size, global_size, kernel_results, sizeof(kernel_results), arr_size(args), args); in test_enqueue_flags()
Denqueue_wg_size.cpp1666 for(k = 0; k < arr_size(sources_enqueue_wg_size); ++k) in test_enqueue_wg_size()
1671 …l (%d of %d) ...\n", sources_enqueue_wg_size[k].src.kernel_name, k + 1, arr_size(sources_enqueue_w… in test_enqueue_wg_size()
1684 for(i = 0; i < arr_size(prime); ++i) in test_enqueue_wg_size()
1703 …ernel_name, local_size, global_size, kernel_results, sizeof(kernel_results), arr_size(args), args); in test_enqueue_wg_size()
1715 log_error("ERROR: %d of %d kernels failed.\n", failCnt, arr_size(sources_enqueue_wg_size)); in test_enqueue_wg_size()
Dhost_multi_queue.cpp129 static const size_t num_kernels_multi_queue_block = arr_size(sources_multi_queue_block);
Dexecute_block.cpp1002 static const size_t num_kernels_execute_block = arr_size(sources_execute_block);
1037 …else if((n = check_kernel_results(kernel_results, arr_size(kernel_results))) >= 0 && check_error(-… in test_execute_block()
/external/ltp/libs/libltpnuma/
Dtst_numa.c32 size_t arr_size = sizeof(unsigned int) * nodes->cnt; in tst_nodemap_reset_counters() local
35 nodes->counters = SAFE_MALLOC(arr_size); in tst_nodemap_reset_counters()
37 memset(nodes->counters, 0, arr_size); in tst_nodemap_reset_counters()
/external/tensorflow/tensorflow/core/kernels/
Dbincount_op_test.cc27 static Graph* Bincount(int arr_size, int nbins) { in Bincount() argument
30 Tensor arr(DT_INT32, TensorShape({arr_size})); in Bincount()
/external/mesa3d/src/compiler/glsl/
Dgl_nir_lower_buffers.c48 unsigned arr_size = glsl_get_length(parent->type); in get_block_array_index() local
60 arr_index = nir_umin(b, arr_index, nir_imm_int(b, arr_size - 1)); in get_block_array_index()
71 array_elements *= arr_size; in get_block_array_index()
/external/OpenCL-CTS/test_conformance/basic/
Dtest_progvar.cpp1286 const size_t arr_size = 10*1024*1024; in l_capacity() local
1287 cl_uchar* buffer = (cl_uchar*) align_malloc( arr_size, ALIGNMENT ); in l_capacity()
1293 clMemWrapper buffer_mem( clCreateBuffer( context, CL_MEM_READ_WRITE, arr_size, 0, &status ) ); in l_capacity()
1315 for ( size_t offset = 0; offset < max_size ; offset += arr_size ) { in l_capacity()
1316 size_t curr_size = (max_size - offset) < arr_size ? (max_size - offset) : arr_size; in l_capacity()
1324 for ( size_t offset = 0; offset < max_size ; offset += arr_size ) { in l_capacity()
1325 size_t curr_size = (max_size - offset) < arr_size ? (max_size - offset) : arr_size; in l_capacity()
/external/blktrace/iowatcher/
Dplot.c155 int arr_size; in alloc_dot_data() local
163 arr_size = (rows + 1) * cols; in alloc_dot_data()
166 arr_size = (arr_size + 7) / 8; in alloc_dot_data()
168 gdd = calloc(1, size + arr_size); in alloc_dot_data()
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/
Dtable.c631 size_t arr_size = max[size_lg2] + 1; /* +1 so arr[max] will fit. */ in upb_inttable_compact2() local
636 upb_inttable_sizedinit(&new_t, arr_size, hashsize_lg2, a); in upb_inttable_compact2()
642 UPB_ASSERT(new_t.array_size == arr_size); in upb_inttable_compact2()
Dmsg.h236 const size_t arr_size = UPB_ALIGN_UP(sizeof(upb_array), 8); in _upb_array_new() local
240 arr->data = _upb_tag_arrptr(UPB_PTR_AT(arr, arr_size, void), elem_size_lg2); in _upb_array_new()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux.cc442 int arr_size) { in ReadNullSepFileToArray() argument
446 *arr = (char **)MmapOrDie(arr_size * sizeof(char *), "NullSepFileArray"); in ReadNullSepFileToArray()
457 CHECK_LE(count, arr_size - 1); // FIXME: make this more flexible. in ReadNullSepFileToArray()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_linux.cpp559 int arr_size) { in ReadNullSepFileToArray() argument
563 *arr = (char **)MmapOrDie(arr_size * sizeof(char *), "NullSepFileArray"); in ReadNullSepFileToArray()
574 CHECK_LE(count, arr_size - 1); // FIXME: make this more flexible. in ReadNullSepFileToArray()
/external/mesa3d/src/compiler/nir/
Dnir_lower_io.c2001 nir_ssa_def *arr_size = in lower_explicit_io_array_length() local
2005 nir_ssa_def_rewrite_uses(&intrin->dest.ssa, nir_src_for_ssa(arr_size)); in lower_explicit_io_array_length()
/external/protobuf/php/ext/google/protobuf/
Dupb.c5279 size_t arr_size = max[size_lg2] + 1; /* +1 so arr[max] will fit. */ in upb_inttable_compact2() local
5284 upb_inttable_sizedinit(&new_t, t->t.ctype, arr_size, hashsize_lg2, a); in upb_inttable_compact2()
5290 UPB_ASSERT(new_t.array_size == arr_size); in upb_inttable_compact2()
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.c7070 size_t arr_size = max[size_lg2] + 1; /* +1 so arr[max] will fit. */ in upb_inttable_compact2() local
7075 upb_inttable_sizedinit(&new_t, t->t.ctype, arr_size, hashsize_lg2, a); in upb_inttable_compact2()
7081 UPB_ASSERT(new_t.array_size == arr_size); in upb_inttable_compact2()