Enum hip_sys::hiprt::hipError_t
source · #[non_exhaustive]#[repr(u32)]pub enum hipError_t {
Show 74 variants
hipSuccess,
hipErrorInvalidValue,
hipErrorOutOfMemory,
hipErrorNotInitialized,
hipErrorDeinitialized,
hipErrorProfilerDisabled,
hipErrorProfilerNotInitialized,
hipErrorProfilerAlreadyStarted,
hipErrorProfilerAlreadyStopped,
hipErrorInvalidConfiguration,
hipErrorInvalidPitchValue,
hipErrorInvalidSymbol,
hipErrorInvalidDevicePointer,
hipErrorInvalidMemcpyDirection,
hipErrorInsufficientDriver,
hipErrorMissingConfiguration,
hipErrorPriorLaunchFailure,
hipErrorInvalidDeviceFunction,
hipErrorNoDevice,
hipErrorInvalidDevice,
hipErrorInvalidImage,
hipErrorInvalidContext,
hipErrorContextAlreadyCurrent,
hipErrorMapFailed,
hipErrorUnmapFailed,
hipErrorArrayIsMapped,
hipErrorAlreadyMapped,
hipErrorNoBinaryForGpu,
hipErrorAlreadyAcquired,
hipErrorNotMapped,
hipErrorNotMappedAsArray,
hipErrorNotMappedAsPointer,
hipErrorECCNotCorrectable,
hipErrorUnsupportedLimit,
hipErrorContextAlreadyInUse,
hipErrorPeerAccessUnsupported,
hipErrorInvalidKernelFile,
hipErrorInvalidGraphicsContext,
hipErrorInvalidSource,
hipErrorFileNotFound,
hipErrorSharedObjectSymbolNotFound,
hipErrorSharedObjectInitFailed,
hipErrorOperatingSystem,
hipErrorInvalidHandle,
hipErrorIllegalState,
hipErrorNotFound,
hipErrorNotReady,
hipErrorIllegalAddress,
hipErrorLaunchOutOfResources,
hipErrorLaunchTimeOut,
hipErrorPeerAccessAlreadyEnabled,
hipErrorPeerAccessNotEnabled,
hipErrorSetOnActiveProcess,
hipErrorContextIsDestroyed,
hipErrorAssert,
hipErrorHostMemoryAlreadyRegistered,
hipErrorHostMemoryNotRegistered,
hipErrorLaunchFailure,
hipErrorCooperativeLaunchTooLarge,
hipErrorNotSupported,
hipErrorStreamCaptureUnsupported,
hipErrorStreamCaptureInvalidated,
hipErrorStreamCaptureMerge,
hipErrorStreamCaptureUnmatched,
hipErrorStreamCaptureUnjoined,
hipErrorStreamCaptureIsolation,
hipErrorStreamCaptureImplicit,
hipErrorCapturedEvent,
hipErrorStreamCaptureWrongThread,
hipErrorGraphExecUpdateFailure,
hipErrorUnknown,
hipErrorRuntimeMemory,
hipErrorRuntimeOther,
hipErrorTbd,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
hipSuccess
< Successful completion.
hipErrorInvalidValue
< One or more of the parameters passed to the API call is NULL < or not in an acceptable range.
hipErrorOutOfMemory
hipErrorNotInitialized
hipErrorDeinitialized
hipErrorProfilerDisabled
hipErrorProfilerNotInitialized
hipErrorProfilerAlreadyStarted
hipErrorProfilerAlreadyStopped
hipErrorInvalidConfiguration
hipErrorInvalidPitchValue
hipErrorInvalidSymbol
hipErrorInvalidDevicePointer
< Invalid Device Pointer
hipErrorInvalidMemcpyDirection
< Invalid memory copy direction
hipErrorInsufficientDriver
hipErrorMissingConfiguration
hipErrorPriorLaunchFailure
hipErrorInvalidDeviceFunction
hipErrorNoDevice
< Call to hipGetDeviceCount returned 0 devices
hipErrorInvalidDevice
< DeviceID must be in range 0…#compute-devices.
hipErrorInvalidImage
hipErrorInvalidContext
< Produced when input context is invalid.
hipErrorContextAlreadyCurrent
hipErrorMapFailed
hipErrorUnmapFailed
hipErrorArrayIsMapped
hipErrorAlreadyMapped
hipErrorNoBinaryForGpu
hipErrorAlreadyAcquired
hipErrorNotMapped
hipErrorNotMappedAsArray
hipErrorNotMappedAsPointer
hipErrorECCNotCorrectable
hipErrorUnsupportedLimit
hipErrorContextAlreadyInUse
hipErrorPeerAccessUnsupported
hipErrorInvalidKernelFile
< In CUDA DRV, it is CUDA_ERROR_INVALID_PTX
hipErrorInvalidGraphicsContext
hipErrorInvalidSource
hipErrorFileNotFound
hipErrorOperatingSystem
hipErrorInvalidHandle
hipErrorIllegalState
< Resource required is not in a valid state to perform operation.
hipErrorNotFound
hipErrorNotReady
< Indicates that asynchronous operations enqueued earlier are not < ready. This is not actually an error, but is used to distinguish < from hipSuccess (which indicates completion). APIs that return < this error include hipEventQuery and hipStreamQuery.
hipErrorIllegalAddress
hipErrorLaunchOutOfResources
< Out of resources error.
hipErrorLaunchTimeOut
hipErrorPeerAccessAlreadyEnabled
hipErrorPeerAccessNotEnabled
hipErrorSetOnActiveProcess
hipErrorContextIsDestroyed
hipErrorAssert
< Produced when the kernel calls assert.
hipErrorHostMemoryAlreadyRegistered
hipErrorHostMemoryNotRegistered
hipErrorLaunchFailure
hipErrorCooperativeLaunchTooLarge
hipErrorNotSupported
< Produced when the hip API is not supported/implemented
hipErrorStreamCaptureUnsupported
< The operation is not permitted when the stream < is capturing.
hipErrorStreamCaptureInvalidated
< The current capture sequence on the stream < has been invalidated due to a previous error.
hipErrorStreamCaptureMerge
< The operation would have resulted in a merge of < two independent capture sequences.
hipErrorStreamCaptureUnmatched
< The capture was not initiated in this stream.
hipErrorStreamCaptureUnjoined
< The capture sequence contains a fork that was not < joined to the primary stream.
hipErrorStreamCaptureIsolation
< A dependency would have been created which crosses < the capture sequence boundary. Only implicit < in-stream ordering dependencies are allowed < to cross the boundary
hipErrorStreamCaptureImplicit
< The operation would have resulted in a disallowed < implicit dependency on a current capture sequence < from hipStreamLegacy.
hipErrorCapturedEvent
< The operation is not permitted on an event which was last < recorded in a capturing stream.
hipErrorStreamCaptureWrongThread
< A stream capture sequence not initiated with < the hipStreamCaptureModeRelaxed argument to < hipStreamBeginCapture was passed to < hipStreamEndCapture in a different thread.
hipErrorGraphExecUpdateFailure
< This error indicates that the graph update < not performed because it included changes which < violated constraintsspecific to instantiated graph < update.
hipErrorUnknown
hipErrorRuntimeMemory
< HSA runtime memory call returned error. Typically not seen < in production systems.
hipErrorRuntimeOther
< HSA runtime call other than memory returned error. Typically < not seen in production systems.
hipErrorTbd
< Marker that more error codes are needed.
Implementations§
source§impl hipError_t
impl hipError_t
pub const hipErrorMemoryAllocation: hipError_t = hipError_t::hipErrorOutOfMemory
source§impl hipError_t
impl hipError_t
pub const hipErrorInitializationError: hipError_t = hipError_t::hipErrorNotInitialized
source§impl hipError_t
impl hipError_t
pub const hipErrorMapBufferObjectFailed: hipError_t = hipError_t::hipErrorMapFailed
source§impl hipError_t
impl hipError_t
pub const hipErrorInvalidResourceHandle: hipError_t = hipError_t::hipErrorInvalidHandle
Trait Implementations§
source§impl Clone for hipError_t
impl Clone for hipError_t
source§fn clone(&self) -> hipError_t
fn clone(&self) -> hipError_t
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for hipError_t
impl Debug for hipError_t
source§impl Hash for hipError_t
impl Hash for hipError_t
source§impl Ord for hipError_t
impl Ord for hipError_t
source§fn cmp(&self, other: &hipError_t) -> Ordering
fn cmp(&self, other: &hipError_t) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<hipError_t> for hipError_t
impl PartialEq<hipError_t> for hipError_t
source§fn eq(&self, other: &hipError_t) -> bool
fn eq(&self, other: &hipError_t) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialOrd<hipError_t> for hipError_t
impl PartialOrd<hipError_t> for hipError_t
source§fn partial_cmp(&self, other: &hipError_t) -> Option<Ordering>
fn partial_cmp(&self, other: &hipError_t) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more