Copyright | [2009..2023] Trevor L. McDonell |
---|---|
License | BSD |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Error handling functions
Synopsis
- data Status
- = Success
- | InvalidValue
- | MemoryAllocation
- | InitializationError
- | CudartUnloading
- | ProfilerDisabled
- | ProfilerNotInitialized
- | ProfilerAlreadyStarted
- | ProfilerAlreadyStopped
- | InvalidConfiguration
- | InvalidPitchValue
- | InvalidSymbol
- | InvalidHostPointer
- | InvalidDevicePointer
- | InvalidTexture
- | InvalidTextureBinding
- | InvalidChannelDescriptor
- | InvalidMemcpyDirection
- | AddressOfConstant
- | TextureFetchFailed
- | TextureNotBound
- | SynchronizationError
- | InvalidFilterSetting
- | InvalidNormSetting
- | MixedDeviceExecution
- | NotYetImplemented
- | MemoryValueTooLarge
- | StubLibrary
- | InsufficientDriver
- | CallRequiresNewerDriver
- | InvalidSurface
- | DuplicateVariableName
- | DuplicateTextureName
- | DuplicateSurfaceName
- | DevicesUnavailable
- | IncompatibleDriverContext
- | MissingConfiguration
- | PriorLaunchFailure
- | LaunchMaxDepthExceeded
- | LaunchFileScopedTex
- | LaunchFileScopedSurf
- | SyncDepthExceeded
- | LaunchPendingCountExceeded
- | InvalidDeviceFunction
- | NoDevice
- | InvalidDevice
- | DeviceNotLicensed
- | SoftwareValidityNotEstablished
- | StartupFailure
- | InvalidKernelImage
- | DeviceUninitialized
- | MapBufferObjectFailed
- | UnmapBufferObjectFailed
- | ArrayIsMapped
- | AlreadyMapped
- | NoKernelImageForDevice
- | AlreadyAcquired
- | NotMapped
- | NotMappedAsArray
- | NotMappedAsPointer
- | ECCUncorrectable
- | UnsupportedLimit
- | DeviceAlreadyInUse
- | PeerAccessUnsupported
- | InvalidPtx
- | InvalidGraphicsContext
- | NvlinkUncorrectable
- | JitCompilerNotFound
- | UnsupportedPtxVersion
- | JitCompilationDisabled
- | UnsupportedExecAffinity
- | InvalidSource
- | FileNotFound
- | SharedObjectSymbolNotFound
- | SharedObjectInitFailed
- | OperatingSystem
- | InvalidResourceHandle
- | IllegalState
- | SymbolNotFound
- | NotReady
- | IllegalAddress
- | LaunchOutOfResources
- | LaunchTimeout
- | LaunchIncompatibleTexturing
- | PeerAccessAlreadyEnabled
- | PeerAccessNotEnabled
- | SetOnActiveProcess
- | ContextIsDestroyed
- | Assert
- | TooManyPeers
- | HostMemoryAlreadyRegistered
- | HostMemoryNotRegistered
- | HardwareStackError
- | IllegalInstruction
- | MisalignedAddress
- | InvalidAddressSpace
- | InvalidPc
- | LaunchFailure
- | CooperativeLaunchTooLarge
- | NotPermitted
- | NotSupported
- | SystemNotReady
- | SystemDriverMismatch
- | CompatNotSupportedOnDevice
- | MpsConnectionFailed
- | MpsRpcFailure
- | MpsServerNotReady
- | MpsMaxClientsReached
- | MpsMaxConnectionsReached
- | MpsClientTerminated
- | StreamCaptureUnsupported
- | StreamCaptureInvalidated
- | StreamCaptureMerge
- | StreamCaptureUnmatched
- | StreamCaptureUnjoined
- | StreamCaptureIsolation
- | StreamCaptureImplicit
- | CapturedEvent
- | StreamCaptureWrongThread
- | Timeout
- | GraphExecUpdateFailure
- | ExternalDevice
- | InvalidClusterSize
- | Unknown
- | 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 ()
- checkStatus :: CInt -> IO ()
Documentation
Return codes from API functions
data CUDAException Source #
Instances
Exception CUDAException Source # | |
Defined in Foreign.CUDA.Runtime.Error | |
Show CUDAException Source # | |
Defined in Foreign.CUDA.Runtime.Error showsPrec :: Int -> CUDAException -> ShowS # show :: CUDAException -> String # showList :: [CUDAException] -> ShowS # |
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
checkStatus :: CInt -> IO () Source #