futhark-0.19.7: An optimising compiler for a functional, array-oriented language.
Safe HaskellNone
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 :: Pattern GPUMem -> SegLevel -> SegSpace -> [SegBinOp GPUMem] -> KernelBody GPUMem -> CallKernelGen () Source #

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