Copyright | [2013..2018] Robert Clifton-Everest 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 | Haskell98 |
Synopsis
- data Result
- describe :: Result -> String
- data CUFFTException
- cufftError :: String -> IO a
- resultIfOk :: (Result, a) -> IO a
- nothingIfOk :: Result -> IO ()
- checkStatus :: CInt -> IO ()
Documentation
Error codes used by cuFFT library functions
data CUFFTException Source #
Instances
Show CUFFTException Source # | |
Defined in Foreign.CUDA.FFT.Error showsPrec :: Int -> CUFFTException -> ShowS # show :: CUFFTException -> String # showList :: [CUFFTException] -> ShowS # | |
Exception CUFFTException Source # | |
Defined in Foreign.CUDA.FFT.Error |
cufftError :: String -> IO a Source #
Raise a CUFFTException in the IO Monad
resultIfOk :: (Result, 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 :: Result -> IO () Source #
Throw an exception with an error string associated with an unsuccessful return code, otherwise return unit.
checkStatus :: CInt -> IO () Source #