futhark-0.22.2: An optimising compiler for a functional, array-oriented language.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Futhark.CodeGen.ImpGen.GPU.SegScan

Description

Code generation for SegScan. Dispatches to either a single-pass or two-pass implementation, depending on the nature of the scan and the chosen abckend.

Synopsis

Documentation

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

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