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

Futhark.CodeGen.ImpGen.Kernels.SegScan

Description

Code generation for segmented and non-segmented scans. Uses a fairly inefficient two-pass algorithm.

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.