cuda-0.6.0.1: FFI binding to the CUDA interface for programming NVIDIA GPUs

Copyright(c) [2009..2012] Trevor L. McDonell
LicenseBSD
Safe HaskellNone
LanguageHaskell98

Foreign.CUDA.Driver.Error

Description

Error handling

Synopsis

Documentation

describe :: Status -> String Source

Return a descriptive error string associated with a particular error code

cudaError :: String -> IO a Source

Raise a CUDAException in the IO Monad

requireSDK :: Double -> String -> IO a Source

A specially formatted error message

resultIfOk :: (Status, a) -> IO a Source

Return the results of a function on successful execution, otherwise throw an exception with an error string associated with the return code

nothingIfOk :: Status -> IO () Source

Throw an exception with an error string associated with an unsuccessful return code, otherwise return unit.