CudaException#

public class CudaException extends RuntimeException#

Exception from the cuda language/library.

Be aware that because of how cuda does asynchronous processing exceptions from cuda can be thrown by method calls that did not cause the exception to take place. These will take place on the same thread that caused the error.

Please See the cuda docs for more details on how this works.

In general you can recover from cuda errors even in async calls if you make sure that you don’t switch between threads for different parts of processing that can be retried as a chunk.

Subclassed by ai.rapids.cudf.CudaFatalException

Method Summary

Methods

public String getNativeStacktrace()#
public CudaError getCudaError()#
public enum CudaError#

The Java mirror of cudaError, which facilities the tracking of CUDA errors in JVM.

Enum Constant Summary

cudaErrorAddressOfConstant

cudaErrorAlreadyAcquired

cudaErrorAlreadyMapped

cudaErrorApiFailureBase

cudaErrorArrayIsMapped

cudaErrorAssert

cudaErrorCallRequiresNewerDriver

cudaErrorCapturedEvent

cudaErrorCompatNotSupportedOnDevice

cudaErrorContextIsDestroyed

cudaErrorCooperativeLaunchTooLarge

cudaErrorCudartUnloading

cudaErrorDeviceAlreadyInUse

cudaErrorDeviceNotLicensed

cudaErrorDevicesUnavailable

cudaErrorDeviceUninitialized

cudaErrorDuplicateSurfaceName

cudaErrorDuplicateTextureName

cudaErrorDuplicateVariableName

cudaErrorECCUncorrectable

cudaErrorExternalDevice

cudaErrorFileNotFound

cudaErrorGraphExecUpdateFailure

cudaErrorHardwareStackError

cudaErrorHostMemoryAlreadyRegistered

cudaErrorHostMemoryNotRegistered

cudaErrorIllegalAddress

cudaErrorIllegalInstruction

cudaErrorIllegalState

cudaErrorIncompatibleDriverContext

cudaErrorInitializationError

cudaErrorInsufficientDriver

cudaErrorInvalidAddressSpace

cudaErrorInvalidChannelDescriptor

cudaErrorInvalidConfiguration

cudaErrorInvalidDevice

cudaErrorInvalidDeviceFunction

cudaErrorInvalidDevicePointer

cudaErrorInvalidFilterSetting

cudaErrorInvalidGraphicsContext

cudaErrorInvalidHostPointer

cudaErrorInvalidKernelImage

cudaErrorInvalidMemcpyDirection

cudaErrorInvalidNormSetting

cudaErrorInvalidPc

cudaErrorInvalidPitchValue

cudaErrorInvalidPtx

cudaErrorInvalidResourceHandle

cudaErrorInvalidSource

cudaErrorInvalidSurface

cudaErrorInvalidSymbol

cudaErrorInvalidTexture

cudaErrorInvalidTextureBinding

cudaErrorInvalidValue

cudaErrorJitCompilationDisabled

cudaErrorJitCompilerNotFound

cudaErrorLaunchFailure

cudaErrorLaunchFileScopedSurf

cudaErrorLaunchFileScopedTex

cudaErrorLaunchIncompatibleTexturing

cudaErrorLaunchMaxDepthExceeded

cudaErrorLaunchOutOfResources

cudaErrorLaunchPendingCountExceeded

cudaErrorLaunchTimeout

cudaErrorMapBufferObjectFailed

cudaErrorMemoryAllocation

cudaErrorMemoryValueTooLarge

cudaErrorMisalignedAddress

cudaErrorMissingConfiguration

cudaErrorMixedDeviceExecution

cudaErrorMpsConnectionFailed

cudaErrorMpsMaxClientsReached

cudaErrorMpsMaxConnectionsReached

cudaErrorMpsRpcFailure

cudaErrorMpsServerNotReady

cudaErrorNoDevice

cudaErrorNoKernelImageForDevice

cudaErrorNotMapped

cudaErrorNotMappedAsArray

cudaErrorNotMappedAsPointer

cudaErrorNotPermitted

cudaErrorNotReady

cudaErrorNotSupported

cudaErrorNotYetImplemented

cudaErrorNvlinkUncorrectable

cudaErrorOperatingSystem

cudaErrorPeerAccessAlreadyEnabled

cudaErrorPeerAccessNotEnabled

cudaErrorPeerAccessUnsupported

cudaErrorPriorLaunchFailure

cudaErrorProfilerAlreadyStarted

cudaErrorProfilerAlreadyStopped

cudaErrorProfilerDisabled

cudaErrorProfilerNotInitialized

cudaErrorSetOnActiveProcess

cudaErrorSharedObjectInitFailed

cudaErrorSharedObjectSymbolNotFound

cudaErrorSoftwareValidityNotEstablished

cudaErrorStartupFailure

cudaErrorStreamCaptureImplicit

cudaErrorStreamCaptureInvalidated

cudaErrorStreamCaptureIsolation

cudaErrorStreamCaptureMerge

cudaErrorStreamCaptureUnjoined

cudaErrorStreamCaptureUnmatched

cudaErrorStreamCaptureUnsupported

cudaErrorStreamCaptureWrongThread

cudaErrorStubLibrary

cudaErrorSymbolNotFound

cudaErrorSyncDepthExceeded

cudaErrorSynchronizationError

cudaErrorSystemDriverMismatch

cudaErrorSystemNotReady

cudaErrorTextureFetchFailed

cudaErrorTextureNotBound

cudaErrorTimeout

cudaErrorTooManyPeers

cudaErrorUnknown

cudaErrorUnmapBufferObjectFailed

cudaErrorUnsupportedExecAffinity

cudaErrorUnsupportedLimit

cudaErrorUnsupportedPtxVersion

UnknownNativeError

Method Summary

Enum Constants

UnknownNativeError#
cudaErrorInvalidValue#
cudaErrorMemoryAllocation#
cudaErrorInitializationError#
cudaErrorCudartUnloading#
cudaErrorProfilerDisabled#
cudaErrorProfilerNotInitialized#
cudaErrorProfilerAlreadyStarted#
cudaErrorProfilerAlreadyStopped#
cudaErrorInvalidConfiguration#
cudaErrorInvalidPitchValue#
cudaErrorInvalidSymbol#
cudaErrorInvalidHostPointer#
cudaErrorInvalidDevicePointer#
cudaErrorInvalidTexture#
cudaErrorInvalidTextureBinding#
cudaErrorInvalidChannelDescriptor#
cudaErrorInvalidMemcpyDirection#
cudaErrorAddressOfConstant#
cudaErrorTextureFetchFailed#
cudaErrorTextureNotBound#
cudaErrorSynchronizationError#
cudaErrorInvalidFilterSetting#
cudaErrorInvalidNormSetting#
cudaErrorMixedDeviceExecution#
cudaErrorNotYetImplemented#
cudaErrorMemoryValueTooLarge#
cudaErrorStubLibrary#
cudaErrorInsufficientDriver#
cudaErrorCallRequiresNewerDriver#
cudaErrorInvalidSurface#
cudaErrorDuplicateVariableName#
cudaErrorDuplicateTextureName#
cudaErrorDuplicateSurfaceName#
cudaErrorDevicesUnavailable#
cudaErrorIncompatibleDriverContext#
cudaErrorMissingConfiguration#
cudaErrorPriorLaunchFailure#
cudaErrorLaunchMaxDepthExceeded#
cudaErrorLaunchFileScopedTex#
cudaErrorLaunchFileScopedSurf#
cudaErrorSyncDepthExceeded#
cudaErrorLaunchPendingCountExceeded#
cudaErrorInvalidDeviceFunction#
cudaErrorNoDevice#
cudaErrorInvalidDevice#
cudaErrorDeviceNotLicensed#
cudaErrorSoftwareValidityNotEstablished#
cudaErrorStartupFailure#
cudaErrorInvalidKernelImage#
cudaErrorDeviceUninitialized#
cudaErrorMapBufferObjectFailed#
cudaErrorUnmapBufferObjectFailed#
cudaErrorArrayIsMapped#
cudaErrorAlreadyMapped#
cudaErrorNoKernelImageForDevice#
cudaErrorAlreadyAcquired#
cudaErrorNotMapped#
cudaErrorNotMappedAsArray#
cudaErrorNotMappedAsPointer#
cudaErrorECCUncorrectable#
cudaErrorUnsupportedLimit#
cudaErrorDeviceAlreadyInUse#
cudaErrorPeerAccessUnsupported#
cudaErrorInvalidPtx#
cudaErrorInvalidGraphicsContext#
cudaErrorNvlinkUncorrectable#
cudaErrorJitCompilerNotFound#
cudaErrorUnsupportedPtxVersion#
cudaErrorJitCompilationDisabled#
cudaErrorUnsupportedExecAffinity#
cudaErrorInvalidSource#
cudaErrorFileNotFound#
cudaErrorSharedObjectSymbolNotFound#
cudaErrorSharedObjectInitFailed#
cudaErrorOperatingSystem#
cudaErrorInvalidResourceHandle#
cudaErrorIllegalState#
cudaErrorSymbolNotFound#
cudaErrorNotReady#
cudaErrorIllegalAddress#
cudaErrorLaunchOutOfResources#
cudaErrorLaunchTimeout#
cudaErrorLaunchIncompatibleTexturing#
cudaErrorPeerAccessAlreadyEnabled#
cudaErrorPeerAccessNotEnabled#
cudaErrorSetOnActiveProcess#
cudaErrorContextIsDestroyed#
cudaErrorAssert#
cudaErrorTooManyPeers#
cudaErrorHostMemoryAlreadyRegistered#
cudaErrorHostMemoryNotRegistered#
cudaErrorHardwareStackError#
cudaErrorIllegalInstruction#
cudaErrorMisalignedAddress#
cudaErrorInvalidAddressSpace#
cudaErrorInvalidPc#
cudaErrorLaunchFailure#
cudaErrorCooperativeLaunchTooLarge#
cudaErrorNotPermitted#
cudaErrorNotSupported#
cudaErrorSystemNotReady#
cudaErrorSystemDriverMismatch#
cudaErrorCompatNotSupportedOnDevice#
cudaErrorMpsConnectionFailed#
cudaErrorMpsRpcFailure#
cudaErrorMpsServerNotReady#
cudaErrorMpsMaxClientsReached#
cudaErrorMpsMaxConnectionsReached#
cudaErrorStreamCaptureUnsupported#
cudaErrorStreamCaptureInvalidated#
cudaErrorStreamCaptureMerge#
cudaErrorStreamCaptureUnmatched#
cudaErrorStreamCaptureUnjoined#
cudaErrorStreamCaptureIsolation#
cudaErrorStreamCaptureImplicit#
cudaErrorCapturedEvent#
cudaErrorStreamCaptureWrongThread#
cudaErrorTimeout#
cudaErrorGraphExecUpdateFailure#
cudaErrorExternalDevice#
cudaErrorUnknown#
cudaErrorApiFailureBase#

Static Methods

public static CudaError parseErrorCode(int errorCode)#