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

Futhark.CodeGen.Backends.PyOpenCL.Boilerplate

Description

Various boilerplate definitions for the PyOpenCL backend.

Synopsis

Documentation

openClInit :: [(Name, KernelConstExp)] -> [PrimType] -> String -> ParamMap -> [FailureMsg] -> Text Source #

Python code (as a string) that calls the initiatialize_opencl_object procedure. Should be put in the class constructor.