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.Driver.Error

Contents

Description

Error handling

Synopsis

CUDA Errors

data Status Source #

Constructors

Success 
InvalidValue 
OutOfMemory 
NotInitialized 
Deinitialized 
ProfilerDisabled 
ProfilerNotInitialized 
ProfilerAlreadyStarted 
ProfilerAlreadyStopped 
StubLibrary 
DeviceUnavailable 
NoDevice 
InvalidDevice 
DeviceNotLicensed 
InvalidImage 
InvalidContext 
ContextAlreadyCurrent 
MapFailed 
UnmapFailed 
ArrayIsMapped 
AlreadyMapped 
NoBinaryForGPU 
AlreadyAcquired 
NotMapped 
NotMappedAsArray 
NotMappedAsPointer 
EccUncorrectable 
UnsupportedLimit 
ContextAlreadyInUse 
PeerAccessUnsupported 
InvalidPTX 
InvalidGraphicsContext 
NvlinkUncorrectable 
JitCompilerNotFound 
UnsupportedPtxVersion 
JitCompilationDisabled 
UnsupportedExecAffinity 
InvalidSource 
FileNotFound 
SharedObjectSymbolNotFound 
SharedObjectInitFailed 
OperatingSystem 
InvalidHandle 
IllegalState 
NotFound 
NotReady 
IllegalAddress 
LaunchOutOfResources 
LaunchTimeout 
LaunchIncompatibleTexturing 
PeerAccessAlreadyEnabled 
PeerAccessNotEnabled 
PrimaryContextActive 
ContextIsDestroyed 
Assert 
TooManyPeers 
HostMemoryAlreadyRegistered 
HostMemoryNotRegistered 
HardwareStackError 
IllegalInstruction 
MisalignedAddress 
InvalidAddressSpace 
InvalidPC 
LaunchFailed 
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 

Instances

Instances details
Enum Status Source # 
Instance details

Defined in Foreign.CUDA.Driver.Error

Show Status Source # 
Instance details

Defined in Foreign.CUDA.Driver.Error

Eq Status Source # 
Instance details

Defined in Foreign.CUDA.Driver.Error

Methods

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

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

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

cudaError :: String -> a Source #

Raise a CUDAException. Exceptions can be thrown from pure code, but can only be caught in the IO monad.

cudaErrorIO :: String -> IO a Source #

Raise a CUDAException in the IO Monad

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

A specially formatted error message

resultIfOk :: (Status, 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 :: Status -> IO () Source #

Throw an exception with an error string associated with an unsuccessful return code, otherwise return unit.