cusolver-0.3.0.0: FFI bindings to CUDA Solver, a LAPACK-like 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.Solver.Error

Description

 
Synopsis

Documentation

cusolverError :: String -> IO a Source #

Raise a CUSolverException in the IO Monad

requireSDK :: Name -> Double -> 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.

checkStatus :: CInt -> IO () Source #

Throw an error if given error code is not CUSPARSE_STATUS_SUCCESS