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

Copyright[2009..2017] 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 
NvlinkUncorrectable 
StartupFailure 
ApiFailureBase 

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