Function sequant::eval::dryrun::batch_slice_extents_from_tiles¶
Defined in File size_regime.hpp
Function Documentation¶
-
inline container::svector<std::size_t> sequant::eval::dryrun::batch_slice_extents_from_tiles(container::svector<std::size_t> const &tile_extents, std::size_t target_batch_size)¶
Convert a tile-extent sequence into a batch-slice-extent sequence (SizeRegime::space_slice_extents) by the same whole-tile grouping the wet batched evaluator uses (mode_batches_of_trange1, tiledarray/result.hpp): accumulate consecutive tiles into a slice until appending the next would push the slice over
target_batch_size, then start a new slice; a lone tile larger than the target still forms its own slice. Slice boundaries fall on tile edges. This is a convenience converter for a tile-based caller; the dry-run backend never calls it — it only reads the resulting slice extents, so any other backend model can populate space_slice_extents differently without touching dry-run internals.