cuda-0.7.5.0: FFI binding to the CUDA interface for programming NVIDIA GPUs

Copyright[2009..2014] Trevor L. McDonell
LicenseBSD
Safe HaskellNone
LanguageHaskell98

Foreign.CUDA.Runtime.Error

Description

Error handling functions

Synopsis

Documentation

data Status Source #

Return codes from API functions

Constructors

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 

cudaError :: String -> IO a Source #

Raise a CUDAException in the IO Monad

describe :: Status -> String Source #

Return the descriptive string associated with a particular error code

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