futhark-0.25.32: An optimising compiler for a functional, array-oriented language.

Safe Haskell | Safe-Inferred
Language | GHC2021

Futhark.Pass.ExtractKernels.ToGPU

# Documentation

getSize :: (MonadBuilder m, Op (Rep m) ~ HostOp inner (Rep m)) => String -> SizeClass -> m SubExp Source #

segThread :: (MonadBuilder m, Op (Rep m) ~ HostOp inner (Rep m)) => String -> m SegLevel Source #

soacsLambdaToGPU :: Lambda SOACS -> Lambda GPU Source #

soacsStmToGPU :: Stm SOACS -> Stm GPU Source #

scopeForGPU :: Scope SOACS -> Scope GPU Source #

scopeForSOACs :: Scope GPU -> Scope SOACS Source #

injectSOACS :: (Monad m, SameScope from to, ExpDec from ~ ExpDec to, BodyDec from ~ BodyDec to, RetType from ~ RetType to, BranchType from ~ BranchType to, Op from ~ SOAC from) => (SOAC to -> Op to) -> Rephraser m from to Source #