cusparse-0.3.0.0: FFI bindings to the CUDA Sparse BLAS library
Copyright[2017] Trevor L. McDonell
LicenseBSD3
MaintainerTrevor L. McDonell <tmcdonell@cse.unsw.edu.au>
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Foreign.CUDA.BLAS.Sparse.Error

Description

 
Synopsis

Documentation

cusparseError :: String -> IO a Source #

Raise a CUSparseException in the IO Monad

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.

checkStatus :: CInt -> IO () Source #

Throw an error if given error code is not CUSPARSE_STATUS_SUCCESS