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

Futhark.CodeGen.Backends.GPU

Description

C code generation for GPU, in general.

This module generates codes that targets the tiny GPU API abstraction layer we define in the runtime system.

Synopsis

Documentation

gpuOptions :: [Option] Source #

Options that are common to multiple GPU-like backends.

generateGPUBoilerplate :: Text -> [(Name, KernelConstExp)] -> Text -> [Name] -> [PrimType] -> [FailureMsg] -> CompilerM OpenCL () () Source #

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