futhark-0.19.5: An optimising compiler for a functional, array-oriented language.
Safe HaskellNone
LanguageHaskell2010

Futhark.CodeGen.ImpGen.Kernels.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 :: Pattern KernelsMem -> SegLevel -> SegSpace -> [SegBinOp KernelsMem] -> KernelBody KernelsMem -> CallKernelGen () Source #

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