Safe Haskell | None |
---|---|
Language | Haskell2010 |
Various boilerplate definitions for the CUDA backend.
Synopsis
- generateBoilerplate :: String -> String -> [Name] -> Map KernelName KernelSafety -> Map Name SizeClass -> [FailureMsg] -> CompilerM OpenCL () ()
- profilingEnclosure :: Name -> ([BlockItem], [BlockItem])
- failureSwitch :: [FailureMsg] -> Stm
- copyDevToDev :: Name
- copyDevToHost :: Name
- copyHostToDev :: Name
- copyScalarToDev :: Name
- copyScalarFromDev :: Name
- kernelRuntime :: KernelName -> Name
- kernelRuns :: KernelName -> Name
- costCentreReport :: [Name] -> [BlockItem]
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.
failureSwitch :: [FailureMsg] -> Stm Source #
copyDevToDev :: Name Source #
copyDevToHost :: Name Source #
copyHostToDev :: Name Source #
kernelRuntime :: KernelName -> Name Source #
kernelRuns :: KernelName -> Name Source #
costCentreReport :: [Name] -> [BlockItem] Source #