Template Function treeweave::guru::gather
Defined in File guru.hpp
Function Documentation
-
template<std::ranges::contiguous_range Packed, std::ranges::contiguous_range Out>
void treeweave::guru::gather(std::span<const std::uint32_t> rank, Packed &&packed, Out &&out) out[i] = packed[rank[i]]— the writeback that restores caller order (thrust::gather-exact semantics:rankis the map intopacked). Owns the software prefetch ofpacked[rank[i + 32]](the batch pipeline’sFunction::kLookaheaddistance), worthwhile on gathered reads. Call once per output component on SoA layouts.