HIP: Heterogenous-computing Interface for Portability
 All Classes Files Functions Variables Enumerations Enumerator Macros Groups Pages
Typedefs | Enumerations
Global enumeration types

Typedefs

typedef enum hipError_t hipError_t
 

Enumerations

enum  hipError_t {
  hipSuccess = 0, hipErrorMemoryAllocation, hipErrorMemoryFree, hipErrorUnknownSymbol,
  hipErrorOutOfResources, hipErrorInvalidValue, hipErrorInvalidResourceHandle, hipErrorInvalidDevice,
  hipErrorNoDevice, hipErrorNotReady, hipErrorUnknown, hipErrorTbd
}
 

Detailed Description

Enumeration Type Documentation

enum hipError_t
Enumerator
hipSuccess 

No error.

hipErrorMemoryAllocation 

Memory allocation error.

hipErrorMemoryFree 

Memory free error.

hipErrorUnknownSymbol 

Unknown symbol.

hipErrorOutOfResources 

Out of resources error.

hipErrorInvalidValue 

One or more of the paramters passed to the API call is NULL or not in an acceptable range.

hipErrorInvalidResourceHandle 

Resource handle (hipEvent_t or hipStream_t) invalid.

hipErrorInvalidDevice 

DeviceID must be in range 0...#compute-devices.

hipErrorNoDevice 

Call to cudaGetDeviceCount returned 0 devices.

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.

hipErrorUnknown 

Unknown error.

hipErrorTbd 

Marker that more error codes are needed.