futhark
Safe HaskellNone
LanguageGHC2021

Futhark.CodeGen.ImpGen.GPU.SegScan.TwoPass

Description

Code generation for segmented and non-segmented scans. Uses a fairly inefficient two-pass algorithm, but can handle anything.

Synopsis

Documentation

compileSegScan :: Pat LetDecMem -> SegLevel -> SegSpace -> [Type] -> [SegBinOp GPUMem] -> KernelBody GPUMem -> SegPostOp GPUMem -> CallKernelGen () Source #

Compile SegScan instance to host-level code with calls to various kernels.