Copyright | [2009..2014] Trevor L. McDonell |
---|---|
License | BSD |
Safe Haskell | None |
Language | Haskell98 |
Error handling functions
- data Status
- = Success
- | MissingConfiguration
- | MemoryAllocation
- | InitializationError
- | LaunchFailure
- | PriorLaunchFailure
- | LaunchTimeout
- | LaunchOutOfResources
- | InvalidDeviceFunction
- | InvalidConfiguration
- | InvalidDevice
- | InvalidValue
- | InvalidPitchValue
- | InvalidSymbol
- | MapBufferObjectFailed
- | UnmapBufferObjectFailed
- | InvalidHostPointer
- | InvalidDevicePointer
- | InvalidTexture
- | InvalidTextureBinding
- | InvalidChannelDescriptor
- | InvalidMemcpyDirection
- | AddressOfConstant
- | TextureFetchFailed
- | TextureNotBound
- | SynchronizationError
- | InvalidFilterSetting
- | InvalidNormSetting
- | MixedDeviceExecution
- | CudartUnloading
- | Unknown
- | NotYetImplemented
- | MemoryValueTooLarge
- | InvalidResourceHandle
- | NotReady
- | InsufficientDriver
- | SetOnActiveProcess
- | InvalidSurface
- | NoDevice
- | ECCUncorrectable
- | SharedObjectSymbolNotFound
- | SharedObjectInitFailed
- | UnsupportedLimit
- | DuplicateVariableName
- | DuplicateTextureName
- | DuplicateSurfaceName
- | DevicesUnavailable
- | InvalidKernelImage
- | NoKernelImageForDevice
- | IncompatibleDriverContext
- | PeerAccessAlreadyEnabled
- | PeerAccessNotEnabled
- | DeviceAlreadyInUse
- | ProfilerDisabled
- | ProfilerNotInitialized
- | ProfilerAlreadyStarted
- | ProfilerAlreadyStopped
- | Assert
- | TooManyPeers
- | HostMemoryAlreadyRegistered
- | HostMemoryNotRegistered
- | OperatingSystem
- | PeerAccessUnsupported
- | LaunchMaxDepthExceeded
- | LaunchFileScopedTex
- | LaunchFileScopedSurf
- | SyncDepthExceeded
- | LaunchPendingCountExceeded
- | NotPermitted
- | NotSupported
- | HardwareStackError
- | IllegalInstruction
- | MisalignedAddress
- | InvalidAddressSpace
- | InvalidPc
- | IllegalAddress
- | InvalidPtx
- | InvalidGraphicsContext
- | StartupFailure
- | ApiFailureBase
- data CUDAException
- cudaError :: String -> IO a
- describe :: Status -> String
- requireSDK :: Name -> Double -> IO a
- resultIfOk :: (Status, a) -> IO a
- nothingIfOk :: Status -> IO ()
Documentation
Return codes from API functions
data CUDAException Source #
describe :: Status -> String Source #
Return the descriptive string associated with a particular error code
resultIfOk :: (Status, a) -> IO a Source #
Return the results of a function on successful execution, otherwise return the error string associated with the return code
nothingIfOk :: Status -> IO () Source #
Return the error string associated with an unsuccessful return code, otherwise Nothing