Copyright | [2009..2017] 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
- | NvlinkUncorrectable
- | StartupFailure
- | ApiFailureBase
- data CUDAException
- cudaError :: String -> IO a
- describe :: Describe a => a -> String
- requireSDK :: Name -> Double -> IO a
- resultIfOk :: (Status, a) -> IO a
- nothingIfOk :: Status -> IO ()
Documentation
Return codes from API functions
data CUDAException Source #
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