Home
last modified time | relevance | path

Searched refs:num_groups (Results 1 – 25 of 87) sorted by relevance

1234

/external/vboot_reference/cgpt/
Dcgpt_prioritize.c25 int num_groups; // number of non-empty groups member
35 gl->num_groups = 0; in NewGroupList()
57 for (i=0; i<gl->num_groups; i++) in AddToGroup()
60 if (i == gl->num_groups) { in AddToGroup()
63 gl->num_groups++; in AddToGroup()
74 for (i=0; i<gl->num_groups; i++) in ChangeGroup()
86 for (i=1; i<gl->num_groups; i++) { in SortGroups()
174 i = groups->num_groups; in CgptPrioritize()
176 groups->num_groups--; in CgptPrioritize()
182 priority = groups->num_groups > 15 ? 15 : groups->num_groups; in CgptPrioritize()
[all …]
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_compute.c39 const GLuint *num_groups, in st_dispatch_compute_common() argument
62 info.grid[i] = num_groups ? num_groups[i] : 0; in st_dispatch_compute_common()
74 const GLuint *num_groups) in st_dispatch_compute() argument
76 st_dispatch_compute_common(ctx, num_groups, NULL, NULL, 0); in st_dispatch_compute()
89 const GLuint *num_groups, in st_dispatch_compute_group_size() argument
92 st_dispatch_compute_common(ctx, num_groups, group_size, NULL, 0); in st_dispatch_compute_group_size()
/external/mesa3d/src/mesa/main/
Dcompute.c55 validate_DispatchCompute(struct gl_context *ctx, const GLuint *num_groups) in validate_DispatchCompute() argument
79 if (num_groups[i] > ctx->Const.MaxComputeWorkGroupCount[i]) { in validate_DispatchCompute()
103 const GLuint *num_groups, in validate_DispatchComputeGroupSizeARB() argument
130 if (num_groups[i] > ctx->Const.MaxComputeWorkGroupCount[i]) { in validate_DispatchComputeGroupSizeARB()
286 const GLuint num_groups[3] = { num_groups_x, num_groups_y, num_groups_z }; in dispatch_compute() local
294 if (!no_error && !validate_DispatchCompute(ctx, num_groups)) in dispatch_compute()
300 ctx->Driver.DispatchCompute(ctx, num_groups); in dispatch_compute()
353 const GLuint num_groups[3] = { num_groups_x, num_groups_y, num_groups_z }; in dispatch_compute_group_size() local
365 !validate_DispatchComputeGroupSizeARB(ctx, num_groups, group_size)) in dispatch_compute_group_size()
371 ctx->Driver.DispatchComputeGroupSize(ctx, num_groups, group_size); in dispatch_compute_group_size()
/external/ltp/testcases/kernel/sched/cfs-scheduler/
Dhackbench.c295 unsigned int i, j, num_groups = 10, total_children; in main() local
308 if (argc >= 2 && (num_groups = atoi(argv[1])) == 0) in main()
312 num_groups, num_groups * 40); in main()
328 pth_tab = malloc(num_fds * 2 * num_groups * sizeof(pthread_t)); in main()
329 snd_ctx_tab = malloc(num_groups * sizeof(void *)); in main()
330 rev_ctx_tab = malloc(num_groups * num_fds * sizeof(void *)); in main()
338 for (i = 0; i < num_groups; i++) in main()
365 for (i = 0; i < num_groups; i++) { in main()
/external/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/rpc_suite/rpc/rpc_auth_authunix_create/
Drpc_authunix_create.c63 int num_groups; in main() local
69 num_groups = getgroups(NGROUPS_MAX, groups); in main()
70 if (num_groups == -1) { in main()
81 authUnx = authunix_create(hostname, uid, gid, num_groups, aup_gids); in main()
/external/llvm-project/openmp/libomptarget/plugins/amdgpu/src/
Drtl.cpp1422 void getLaunchVals(int &threadsPerGroup, int &num_groups, int ConstWGSize, in getLaunchVals() argument
1471 num_groups = (Max_Teams < DeviceInfo.EnvTeamLimit) in getLaunchVals()
1475 num_groups = Max_Teams; in getLaunchVals()
1476 DP("Set default num of groups %d\n", num_groups); in getLaunchVals()
1479 fprintf(stderr, "num_groups: %d\n", num_groups); in getLaunchVals()
1492 num_groups = (Max_Teams * RTLDeviceInfoTy::Max_WG_Size) / threadsPerGroup; in getLaunchVals()
1496 num_groups = (num_teams < num_groups) ? num_teams : num_groups; in getLaunchVals()
1499 fprintf(stderr, "num_groups: %d\n", num_groups); in getLaunchVals()
1505 num_groups = (DeviceInfo.EnvNumTeams < num_groups) ? DeviceInfo.EnvNumTeams in getLaunchVals()
1506 : num_groups; in getLaunchVals()
[all …]
/external/mesa3d/src/gallium/drivers/r600/
Dr600_perfcounter.c45 unsigned total = block->num_groups * block->num_selectors; in lookup_counter()
53 *base_gid += block->num_groups; in lookup_counter()
66 if (*index < block->num_groups) in lookup_group()
68 *index -= block->num_groups; in lookup_group()
462 block->group_names = MALLOC(block->num_groups * block->group_name_stride); in r600_init_block_names()
496 block->selector_names = MALLOC(block->num_groups * block->num_selectors * in r600_init_block_names()
503 for (i = 0; i < block->num_groups; ++i) { in r600_init_block_names()
530 pc->blocks[bid].num_groups; in r600_get_perfcounter_info()
551 if (sub > 0 && sub + 1 < block->num_selectors * block->num_groups) in r600_get_perfcounter_info()
567 return pc->num_groups; in r600_get_perfcounter_group_info()
[all …]
/external/deqp/external/openglcts/modules/gles31/
Des31cComputeShaderTests.cpp644 const GLuint num_groups[3] = { 1, 1, 1 }; in RunIteration() local
648 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), num_groups, GL_STATIC_DRAW); in RunIteration()
752 std::string GenSource(const uvec3& local_size, const uvec3& num_groups) in GenSource() argument
754 const uvec3 global_size = local_size * num_groups; in GenSource()
792 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect) in RunIteration() argument
796 m_program = CreateComputeProgram(GenSource(local_size, num_groups)); in RunIteration()
810 …local_size.x() * num_groups.x() * local_size.y() * num_groups.y() * local_size.z() * num_groups.z(… in RunIteration()
838 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
843 glDispatchCompute(num_groups.x(), num_groups.y(), num_groups.z()); in RunIteration()
853 for (GLuint z = 0; z < local_size.z() * num_groups.z(); ++z) in RunIteration()
[all …]
/external/llvm-project/libclc/amdgcn-amdhsa/lib/workitem/
Dget_num_groups.cl7 size_t num_groups = global_size / local_size;
9 num_groups++;
11 return num_groups;
/external/tensorflow/tensorflow/python/util/
Dlock_util.py56 def __init__(self, num_groups=2): argument
69 if num_groups < 1:
71 num_groups))
73 self._num_groups = num_groups
Dlock_util_test.py33 def testGroups(self, num_groups): argument
34 lock = lock_util.GroupLock(num_groups)
40 group_id = thread_id % num_groups
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_compute.c99 brw_dispatch_compute(struct gl_context *ctx, const GLuint *num_groups) { in brw_dispatch_compute() argument
103 brw->compute.num_work_groups = num_groups; in brw_dispatch_compute()
132 const GLuint *num_groups, in brw_dispatch_compute_group_size() argument
138 brw->compute.num_work_groups = num_groups; in brw_dispatch_compute_group_size()
/external/deqp/external/openglcts/modules/gl/
Dgl4cComputeShaderTests.cpp635 const GLuint num_groups[3] = { 1, 1, 1 }; in RunIteration() local
639 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), num_groups, GL_STATIC_DRAW); in RunIteration()
744 std::string GenSource(const uvec3& local_size, const uvec3& num_groups) in GenSource() argument
746 const uvec3 global_size = local_size * num_groups; in GenSource()
784 bool RunIteration(const uvec3& local_size, const uvec3& num_groups, bool dispatch_indirect) in RunIteration() argument
788 m_program = CreateComputeProgram(GenSource(local_size, num_groups)); in RunIteration()
811 …local_size.x() * num_groups.x() * local_size.y() * num_groups.y() * local_size.z() * num_groups.z(… in RunIteration()
839 glBufferData(GL_DISPATCH_INDIRECT_BUFFER, sizeof(num_groups), &num_groups[0], GL_STATIC_DRAW); in RunIteration()
844 glDispatchCompute(num_groups.x(), num_groups.y(), num_groups.z()); in RunIteration()
852 for (GLuint z = 0; z < local_size.z() * num_groups.z(); ++z) in RunIteration()
[all …]
/external/autotest/client/tests/hackbench/src/
Dhackbench.c316 unsigned int i, num_groups = 10, total_children; in main() local
329 if (argc >= 2 && (num_groups = atoi(argv[1])) == 0) in main()
333 num_groups, num_groups*40); in main()
349 pth_tab = malloc(num_fds * 2 * num_groups * sizeof(pthread_t)); in main()
358 for (i = 0; i < num_groups; i++) in main()
/external/freetype/src/sfnt/
Dttcmap.c1799 FT_UInt32 num_groups; in FT_CALLBACK_DEF() local
1811 num_groups = TT_NEXT_ULONG( p ); in FT_CALLBACK_DEF()
1814 if ( num_groups > (FT_UInt32)( valid->limit - p ) / 12 ) in FT_CALLBACK_DEF()
1822 for ( n = 0; n < num_groups; n++ ) in FT_CALLBACK_DEF()
1899 FT_UInt32 num_groups = TT_NEXT_ULONG( p ); in tt_cmap8_char_index() local
1903 for ( ; num_groups > 0; num_groups-- ) in tt_cmap8_char_index()
1935 FT_UInt32 num_groups = TT_NEXT_ULONG( p ); in tt_cmap8_char_next() local
1946 for ( ; num_groups > 0; num_groups-- ) in tt_cmap8_char_next()
2240 FT_ULong num_groups; member
2252 cmap->num_groups = FT_PEEK_ULONG( table ); in tt_cmap12_init()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dgpu_conv_rewriter.cc71 int64 num_groups = conv->batch_group_count(); in ConvertBatchGroupedToFeatureGroupedConvolution() local
89 reshape_dims[input_batch_dimension] / num_groups; in ConvertBatchGroupedToFeatureGroupedConvolution()
90 reshape_dims.insert(reshape_dims.begin() + input_batch_dimension, num_groups); in ConvertBatchGroupedToFeatureGroupedConvolution()
110 new_shape.set_dimensions(input_feature_dimension, input_feature * num_groups); in ConvertBatchGroupedToFeatureGroupedConvolution()
115 new_conv->set_feature_group_count(num_groups); in ConvertBatchGroupedToFeatureGroupedConvolution()
568 auto num_groups = conv->feature_group_count(); in MatchBackwardInput() local
569 CHECK_EQ(input_features % num_groups, 0) in MatchBackwardInput()
573 reshape_dims[input_feature_dimension] / num_groups; in MatchBackwardInput()
575 num_groups); in MatchBackwardInput()
593 transpose_reshape_dims.begin() + output_feature_dimension, num_groups); in MatchBackwardInput()
[all …]
/external/libxkbcommon/src/xkbcomp/
Dkeymap.c140 for (group = 0; group < key->num_groups; group++) { in ApplyInterpsToKey()
206 for (i = 0; i < key->num_groups; i++) in UpdateDerivedKeymapFields()
217 keymap->num_groups = MAX(keymap->num_groups, key->num_groups); in UpdateDerivedKeymapFields()
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_slab.c200 unsigned num_groups; in pb_slabs_init() local
217 num_groups = slabs->num_orders * slabs->num_heaps; in pb_slabs_init()
218 slabs->groups = CALLOC(num_groups, sizeof(*slabs->groups)); in pb_slabs_init()
222 for (i = 0; i < num_groups; ++i) { in pb_slabs_init()
/external/minijail/test/
Dlibminijail_test.cpp118 size_t num_groups = arraysize(groups); in main() local
119 minijail_set_supplementary_gids(j, num_groups, groups); in main()
124 success = success && check_groups(num_groups, groups); in main()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_perfcounter.c125 unsigned num_groups; member
676 unsigned total = block->num_groups * block->b->selectors; in lookup_counter()
684 *base_gid += block->num_groups; in lookup_counter()
696 if (*index < block->num_groups) in lookup_group()
698 *index -= block->num_groups; in lookup_group()
1300 block->group_names = MALLOC(block->num_groups * block->group_name_stride); in si_init_block_names()
1335 MALLOC(block->num_groups * block->b->selectors * block->selector_name_stride); in si_init_block_names()
1341 for (i = 0; i < block->num_groups; ++i) { in si_init_block_names()
1366 num_queries += pc->blocks[bid].b->selectors * pc->blocks[bid].num_groups; in si_get_perfcounter_info()
1387 if (sub > 0 && sub + 1 < block->b->selectors * block->num_groups) in si_get_perfcounter_info()
[all …]
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/
Dfd5_compute.c189 const unsigned *num_groups = info->grid; in fd5_launch_grid() local
197 OUT_RING(ring, A5XX_HLSQ_CS_NDRANGE_1_GLOBALSIZE_X(local_size[0] * num_groups[0])); in fd5_launch_grid()
199 OUT_RING(ring, A5XX_HLSQ_CS_NDRANGE_3_GLOBALSIZE_Y(local_size[1] * num_groups[1])); in fd5_launch_grid()
201 OUT_RING(ring, A5XX_HLSQ_CS_NDRANGE_5_GLOBALSIZE_Z(local_size[2] * num_groups[2])); in fd5_launch_grid()
/external/mesa3d/src/gallium/drivers/freedreno/a6xx/
Dfd6_compute.c174 const unsigned *num_groups = info->grid; in fd6_launch_grid() local
182 OUT_RING(ring, A6XX_HLSQ_CS_NDRANGE_1_GLOBALSIZE_X(local_size[0] * num_groups[0])); in fd6_launch_grid()
184 OUT_RING(ring, A6XX_HLSQ_CS_NDRANGE_3_GLOBALSIZE_Y(local_size[1] * num_groups[1])); in fd6_launch_grid()
186 OUT_RING(ring, A6XX_HLSQ_CS_NDRANGE_5_GLOBALSIZE_Z(local_size[2] * num_groups[2])); in fd6_launch_grid()
/external/mesa3d/src/freedreno/computerator/
Dmain.c127 static unsigned num_groups; variable
136 for (int i = 0; i < num_groups; i++) { in setup_counter()
180 groups = fd_perfcntrs(gpu_id, &num_groups); in parse_perfcntrs()
181 enabled_counters = calloc(num_groups, sizeof(enabled_counters[0])); in parse_perfcntrs()
/external/tensorflow/tensorflow/core/tpu/kernels/
Dcross_replica_ops.cc35 const int64 num_groups = group_assignment_shape.dim_size(0); in Convert() local
38 replica_groups.reserve(num_groups); in Convert()
39 for (int64 g = 0; g < num_groups; ++g) { in Convert()
/external/libxkbcommon/src/
Dkeymap.c75 for (unsigned i = 0; i < key->num_groups; i++) { in xkb_keymap_unref()
302 return keymap->num_groups; in xkb_keymap_num_layouts()
347 return key->num_groups; in xkb_keymap_num_layouts_for_key()
362 layout = XkbWrapGroupIntoRange(layout, key->num_groups, in xkb_keymap_num_levels_for_key()
424 layout = XkbWrapGroupIntoRange(layout, key->num_groups, in xkb_keymap_key_get_mods_for_level()
488 layout = XkbWrapGroupIntoRange(layout, key->num_groups, in xkb_keymap_key_get_syms_by_level()

1234