| Copyright | [2014..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.BLAS.Error
Description
Synopsis
- data Status
- describe :: Status -> String
- data CUBLASException
- cublasError :: String -> IO a
- requireSDK :: Name -> Double -> IO a
- resultIfOk :: (Status, a) -> IO a
- nothingIfOk :: Status -> IO ()
- checkStatus :: CInt -> IO ()
Documentation
Error codes used by cuBLAS library functions
http://docs.nvidia.com/cuda/cublas/index.html#cublasstatus_t
Constructors
| Success | |
| NotInitialized | |
| AllocFailed | |
| InvalidValue | |
| ArchMismatch | |
| MappingError | |
| ExecutionFailed | |
| InternalError | |
| NotSupported | |
| LicenseError |
data CUBLASException Source #
Instances
| Show CUBLASException Source # | |
Defined in Foreign.CUDA.BLAS.Error Methods showsPrec :: Int -> CUBLASException -> ShowS # show :: CUBLASException -> String # showList :: [CUBLASException] -> ShowS # | |
| Exception CUBLASException Source # | |
Defined in Foreign.CUDA.BLAS.Error Methods toException :: CUBLASException -> SomeException # | |
cublasError :: String -> IO a Source #
Raise a CUBLASException 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 #