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

Futhark.CodeGen.Backends.COpenCL

Description

Code generation for C with OpenCL.

Synopsis

Documentation

compileProg :: MonadFreshNames m => Prog KernelsMem -> m (Warnings, CParts) Source #

Compile the program to C with calls to OpenCL.

data CParts Source #

The result of compilation to C is multiple parts, which can be put together in various ways. The obvious way is to concatenate all of them, which yields a CLI program. Another is to compile the library part by itself, and use the header file to call into it.

Constructors

CParts 

Fields

asLibrary :: CParts -> (String, String) Source #

Produce header and implementation files.

asExecutable :: CParts -> String Source #

As executable with command-line interface.

asServer :: CParts -> String Source #

As server executable.