- data Program
- createProgramWithSource :: Context -> [ByteString] -> IO Program
- createProgramWithBinary :: Context -> [(DeviceID, ByteString)] -> IO Program
- buildProgram :: Program -> String -> IO ()
- buildProgramForDevices :: Program -> [DeviceID] -> String -> IO ()
- printBuildErrors :: Program -> IO a -> IO a
- unloadCompiler :: IO ()
- buildProgramFromSource :: MonadQueue m => String -> [ByteString] -> m Program
- programContext :: Program -> Context
- programDevices :: Program -> [DeviceID]
- programSource :: Program -> ByteString
- getProgramBinaries :: Program -> IO [ByteString]
- data BuildStatus
- getBuildStatus :: Program -> DeviceID -> IO BuildStatus
- getBuildOptions :: Program -> DeviceID -> IO String
- getBuildLog :: Program -> DeviceID -> IO ByteString
Documentation
data Program
createProgramWithSource :: Context -> [ByteString] -> IO Program
createProgramWithBinary :: Context -> [(DeviceID, ByteString)] -> IO Program
buildProgram :: Program -> String -> IO ()
printBuildErrors :: Program -> IO a -> IO a
unloadCompiler :: IO ()
buildProgramFromSource :: MonadQueue m => String -> [ByteString] -> m Program
A convenience function which prints an error message if the build fails.
programContext :: Program -> Context
programDevices :: Program -> [DeviceID]
programSource :: Program -> ByteString
getProgramBinaries :: Program -> IO [ByteString]
data BuildStatus
getBuildStatus :: Program -> DeviceID -> IO BuildStatus
getBuildOptions :: Program -> DeviceID -> IO String
getBuildLog :: Program -> DeviceID -> IO ByteString