Some helper functions that may or may not be useful to anyone.
Documentation
createSyncKernel :: Program -> CommandQueue -> String -> [Int] -> [Int] -> IO (Either ErrorCode ([KernelParameter] -> IO (Maybe ErrorCode)))Source
createAsyncKernelWithParams :: Program -> CommandQueue -> String -> [Int] -> [Int] -> [KernelParameter] -> IO (Either ErrorCode ([Event] -> IO (Either ErrorCode Event)))Source
buildProgram :: String -> String -> Context -> DeviceID -> IO (Either (ErrorCode, String) Program)Source
pushKernelParams :: Kernel -> CLuint -> [KernelParameter] -> IO (Maybe ErrorCode)Source
data KernelParameter Source