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

Futhark.CodeGen.ImpGen.GPU.Group

Description

Generation of kernels with group-level bodies.

Synopsis

Documentation

Precomputation

data Precomputed Source #

Various useful precomputed information for group-level SegOps.

precomputeConstants :: Count GroupSize (TExp Int64) -> Stms GPUMem -> CallKernelGen Precomputed Source #

Precompute various constants and useful information.

precomputedConstants :: Precomputed -> InKernelGen a -> InKernelGen a Source #

Make use of various precomputed constants.

atomicUpdateLocking :: AtomicBinOp -> Lambda GPUMem -> AtomicUpdate GPUMem KernelEnv Source #

Do an atomic update corresponding to a binary operator lambda.