Futhark.Pass.ExtractKernels.ToGPU
getSize :: (MonadBuilder m, Op (Rep m) ~ HostOp (Rep m) inner) => String -> SizeClass -> m SubExp Source #
segThread :: (MonadBuilder m, Op (Rep m) ~ HostOp (Rep m) inner) => 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 #