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

Futhark.CodeGen.Backends.PyOpenCL.Boilerplate

Description

Various boilerplate definitions for the PyOpenCL backend.

Synopsis

Documentation

openClInit :: [PrimType] -> String -> Map Name SizeClass -> [FailureMsg] -> String Source #

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

openClPrelude :: String Source #

rtspythonopencl.py embedded as a string.