MCPcopy Create free account
hub / github.com/apache/arrow / Build

Method Build

cpp/src/arrow/util/bpacking_simd_kernel_internal.h:718–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716 int unpacked_per_kernel_;
717
718 constexpr static LargeKernelPlanSize Build(const KernelShape& shape) {
719 const auto unpacked_per_kernel = std::lcm(shape.unpacked_per_simd(), 8);
720 const auto packed_bits_per_kernel = unpacked_per_kernel * shape.packed_bit_size();
721 const auto reads_per_kernel =
722 bit_util::CeilDiv(packed_bits_per_kernel, shape.simd_bit_size());
723
724 return {
725 .reads_per_kernel_ = static_cast<int>(reads_per_kernel),
726 .unpacked_per_kernel_ = unpacked_per_kernel,
727 };
728 }
729
730 constexpr int reads_per_kernel() const { return reads_per_kernel_; }
731

Callers

nothing calls this directly

Calls 4

CeilDivFunction · 0.85
unpacked_per_simdMethod · 0.80
packed_bit_sizeMethod · 0.80
simd_bit_sizeMethod · 0.80

Tested by

no test coverage detected