cuda-0.11.0.1: FFI binding to the CUDA interface for programming NVIDIA GPUs
Copyright[2009..2023] Trevor L. McDonell
LicenseBSD
Safe HaskellSafe-Inferred
LanguageHaskell98

Foreign.CUDA.Runtime.Error

Description

Error handling functions

Synopsis

Documentation

data Status Source #

Return codes from API functions

Constructors

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 

Instances

Instances details
Enum Status Source # 
Instance details

Defined in Foreign.CUDA.Runtime.Error

Show Status Source # 
Instance details

Defined in Foreign.CUDA.Runtime.Error

Eq Status Source # 
Instance details

Defined in Foreign.CUDA.Runtime.Error

Methods

(==) :: Status -> Status -> Bool #

(/=) :: Status -> Status -> Bool #

cudaError :: String -> IO a Source #

Raise a CUDAException in the IO Monad

describe :: Describe a => a -> String Source #

requireSDK :: Name -> Double -> IO a Source #

A specially formatted error message

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