Home
last modified time | relevance | path

Searched refs:divide_round_up (Results 1 – 16 of 16) sorted by relevance

/external/pthreadpool/src/
Dlegacy-api.c115 const size_t tile_range_i = divide_round_up(range_i, tile_i); in pthreadpool_compute_3d_tiled()
116 const size_t tile_range_j = divide_round_up(range_j, tile_j); in pthreadpool_compute_3d_tiled()
117 const size_t tile_range_k = divide_round_up(range_k, tile_k); in pthreadpool_compute_3d_tiled()
202 const size_t tile_range_i = divide_round_up(range_i, tile_i); in pthreadpool_compute_4d_tiled()
203 const size_t tile_range_j = divide_round_up(range_j, tile_j); in pthreadpool_compute_4d_tiled()
204 const size_t tile_range_k = divide_round_up(range_k, tile_k); in pthreadpool_compute_4d_tiled()
205 const size_t tile_range_l = divide_round_up(range_l, tile_l); in pthreadpool_compute_4d_tiled()
Dportable-api.c1339 const size_t tile_range = divide_round_up(range, tile); in pthreadpool_parallelize_1d_tile_1d()
1425 const size_t tile_range_j = divide_round_up(range_j, tile_j); in pthreadpool_parallelize_2d_tile_1d()
1472 const size_t tile_range_i = divide_round_up(range_i, tile_i); in pthreadpool_parallelize_2d_tile_2d()
1473 const size_t tile_range_j = divide_round_up(range_j, tile_j); in pthreadpool_parallelize_2d_tile_2d()
1533 const size_t tile_range_i = divide_round_up(range_i, tile_i); in pthreadpool_parallelize_2d_tile_2d_with_uarch()
1534 const size_t tile_range_j = divide_round_up(range_j, tile_j); in pthreadpool_parallelize_2d_tile_2d_with_uarch()
1633 const size_t tile_range_k = divide_round_up(range_k, tile_k); in pthreadpool_parallelize_3d_tile_1d()
1684 const size_t tile_range_j = divide_round_up(range_j, tile_j); in pthreadpool_parallelize_3d_tile_2d()
1685 const size_t tile_range_k = divide_round_up(range_k, tile_k); in pthreadpool_parallelize_3d_tile_2d()
1749 const size_t tile_range_j = divide_round_up(range_j, tile_j); in pthreadpool_parallelize_3d_tile_2d_with_uarch()
[all …]
Dthreadpool-utils.h107 static inline size_t divide_round_up(size_t dividend, size_t divisor) { in divide_round_up() function
/external/XNNPACK/src/operators/
Ddeconvolution-nhwc.c196 const size_t subkernel_height = divide_round_up(kernel_height - offset_y, stride_height); in create_deconvolution2d_nhwc()
197 const size_t subkernel_width = divide_round_up(kernel_width - offset_x, stride_width); in create_deconvolution2d_nhwc()
551 const size_t num_other_tiles = groups * batch_size * divide_round_up(output_size, mr); in setup_conv_path()
553 …const size_t max_nc = divide_round_up(group_output_channels * num_other_tiles, num_threads * targe… in setup_conv_path()
555 nc = min(nc, divide_round_up(nc, max_nc * nr) * nr); in setup_conv_path()
644 … subconvolution_params->slice_width = divide_round_up(output_width - output_x_start, stride_width); in setup_subconv2d_path()
645 …subconvolution_params->slice_height = divide_round_up(output_height - output_y_start, stride_heigh… in setup_subconv2d_path()
657 …kernel_size * output_height * stride_width * round_up(divide_round_up(output_width, stride_width),… in setup_subconv2d_path()
723 const size_t output_height_positions = divide_round_up(output_height, stride_height); in setup_subconv2d_path()
724 const size_t output_width_positions = divide_round_up(output_width, stride_width); in setup_subconv2d_path()
[all …]
Dprelu-nc.c139 … const size_t max_batch_tile = divide_round_up(batch_size, num_threads * target_tiles_per_thread); in xnn_setup_prelu_nc_f32()
142 … batch_tile = min(batch_tile, divide_round_up(batch_tile, max_batch_tile * row_tile) * row_tile); in xnn_setup_prelu_nc_f32()
Dconvolution-nhwc.c44 return divide_round_up(input_dimension, subsampling_dimension); in compute_output_dimension_with_tf_same_padding()
883 const size_t num_other_tiles = groups * divide_round_up(batch_output_size, mr); in setup_convolution2d_nhwc()
885 …const size_t max_nc = divide_round_up(group_output_channels * num_other_tiles, num_threads * targe… in setup_convolution2d_nhwc()
887 nc = min(nc, divide_round_up(nc, max_nc * nr) * nr); in setup_convolution2d_nhwc()
996 const size_t num_other_tiles = groups * batch_size * divide_round_up(output_size, mr); in setup_convolution2d_nhwc()
998 …const size_t max_nc = divide_round_up(group_output_channels * num_other_tiles, num_threads * targe… in setup_convolution2d_nhwc()
1000 nc = min(nc, divide_round_up(nc, max_nc * nr) * nr); in setup_convolution2d_nhwc()
1159 … const size_t max_mc = divide_round_up(batch_output_size, num_threads * target_tiles_per_thread); in setup_convolution2d_nhwc()
1162 mc = min(mc, divide_round_up(mc, max_mc * mr) * mr); in setup_convolution2d_nhwc()
Dresize-bilinear-nhwc.c214 …const size_t max_output_size_tile = divide_round_up(output_size, num_threads * target_tiles_per_th… in xnn_setup_resize_bilinear2d_nhwc_f32()
219divide_round_up(output_size_tile, max_output_size_tile * output_size_subtile) * output_size_subtil… in xnn_setup_resize_bilinear2d_nhwc_f32()
Dresize-bilinear-nchw.c213 …const size_t max_channel_tile = divide_round_up(output_channel_tile, num_threads * target_tiles_pe… in xnn_setup_resize_bilinear2d_nchw_f32()
218divide_round_up(output_channel_tile, max_channel_tile * output_channel_subtile) * output_channel_s… in xnn_setup_resize_bilinear2d_nchw_f32()
Dfully-connected-nc.c221 const size_t num_other_tiles = divide_round_up(batch_size, mr); in setup_fully_connected_nc()
223 …const size_t max_nc = divide_round_up(output_channels * num_other_tiles, num_threads * target_tile… in setup_fully_connected_nc()
225 nc = min(nc, divide_round_up(nc, max_nc * nr) * nr); in setup_fully_connected_nc()
Dargmax-pooling-nhwc.c200 argmax_pooling_op->output_height = divide_round_up(input_height, pooling_height); in xnn_setup_argmax_pooling2d_nhwc_f32()
201 argmax_pooling_op->output_width = divide_round_up(input_width, pooling_width); in xnn_setup_argmax_pooling2d_nhwc_f32()
Dconvolution-nchw.c614 const size_t max_mc = divide_round_up(input_size, num_threads * target_tiles_per_thread); in setup_convolution2d_nchw()
616 mc = min(mc, divide_round_up(mc, max_mc * mr) * mr); in setup_convolution2d_nchw()
662 …const size_t max_output_height_slice = divide_round_up(output_height, num_threads * target_tiles_p… in setup_convolution2d_nchw()
665divide_round_up(output_height_slice, max_output_height_slice * output_height_tile) * output_height… in setup_convolution2d_nchw()
Dmax-pooling-nhwc.c42 return divide_round_up(input_dimension, stride_dimension); in compute_output_dimension_with_tf_same_padding()
Daverage-pooling-nhwc.c40 return divide_round_up(input_dimension, stride_dimension); in compute_output_dimension_with_tf_same_padding()
/external/XNNPACK/src/xnnpack/
Dmath.h40 inline static size_t divide_round_up(size_t n, size_t q) { in divide_round_up() function
45 return divide_round_up(n, q) * q; in round_up()
/external/XNNPACK/src/
Dindirection.c160 … const size_t sliced_output_width = divide_round_up(output_width - output_x_start, stride_width); in xnn_indirection_init_subconv2d()
Dpacking.c991 …const int32_t boff = (int32_t) divide_round_up(kh - oy, sh) * (int32_t) divide_round_up(kw - ox, s… in xnn_pack_qu8_deconv_goki_w()