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

Futhark.CodeGen.Backends.CCUDA.Boilerplate

Description

Various boilerplate definitions for the CUDA backend.

Synopsis

Documentation

generateBoilerplate :: String -> String -> [Name] -> Map KernelName KernelSafety -> Map Name SizeClass -> [FailureMsg] -> CompilerM OpenCL () () Source #

Called after most code has been generated to generate the bulk of the boilerplate.

profilingEnclosure :: Name -> ([BlockItem], [BlockItem]) Source #

Block items to put before and after a thing to be profiled.