| Copyright | [2017] Trevor L. McDonell |
|---|---|
| License | BSD3 |
| Maintainer | Trevor L. McDonell <tmcdonell@cse.unsw.edu.au> |
| Stability | experimental |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Foreign.CUDA.Solver.Error
Description
Synopsis
- data Status
- = Success
- | NotInitialized
- | AllocFailed
- | InvalidValue
- | ArchMismatch
- | MappingError
- | ExecutionFailed
- | InternalError
- | MatrixTypeNotSupported
- | NotSupported
- | ZeroPivot
- | InvalidLicense
- | IrsParamsNotInitialized
- | IrsParamsInvalid
- | IrsInternalError
- | IrsNotSupported
- | IrsOutOfRange
- | IrsNrhsNotSupportedForRefineGmres
- | IrsInfosNotInitialized
- describe :: Status -> String
- data CUSolverException
- cusolverError :: String -> IO a
- requireSDK :: Name -> Double -> IO a
- resultIfOk :: (Status, a) -> IO a
- nothingIfOk :: Status -> IO ()
- checkStatus :: CInt -> IO ()
Documentation
Error codes used by cuSolver library functions
http://docs.nvidia.com/cuda/cusolver/index.html#cuSolverSPstatus
Constructors
data CUSolverException Source #
Instances
| Show CUSolverException Source # | |
Defined in Foreign.CUDA.Solver.Error Methods showsPrec :: Int -> CUSolverException -> ShowS # show :: CUSolverException -> String # showList :: [CUSolverException] -> ShowS # | |
| Exception CUSolverException Source # | |
Defined in Foreign.CUDA.Solver.Error Methods toException :: CUSolverException -> SomeException # | |
cusolverError :: String -> IO a Source #
Raise a CUSolverException 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