2. Core Types and Enumerations#
2.1. Error Types#
typedef enum cuObjErr_enum {
CU_OBJ_SUCCESS = 0, // Operation successfully completed
CU_OBJ_FAIL = 1 // Operation failed
} cuObjErr_t;
2.2. Protocol Types#
typedef enum cuObjProto_enum {
CUOBJ_PROTO_RDMA_DC_V1 = 1001, // RDMA Dynamically Connected version 1
CUOBJ_PROTO_MAX
} cuObjProto_t;
CUOBJ_PROTO_RDMA_DC_V1 is the supported protocol value for cuObjClient.
Current behavior stores the proto value passed to the constructor and does
not report an error for unsupported values.
2.3. Operation Types#
typedef enum cuObjOpType_enum {
CUOBJ_GET = 0, // GET operation
CUOBJ_PUT = 1, // PUT operation
CUOBJ_INVALID = 9999
} cuObjOpType_t;
CUOBJ_GET and CUOBJ_PUT are the valid operation values for
cuMemObjGetRDMAToken().
2.4. Memory Types#
typedef enum cuObjMemoryType_enum {
CUOBJ_MEMORY_SYSTEM = 0, // System (host) memory
CUOBJ_MEMORY_CUDA_MANAGED = 1, // CUDA unified/managed memory
CUOBJ_MEMORY_CUDA_DEVICE = 2, // CUDA device memory
CUOBJ_MEMORY_UNKNOWN = 3, // Unknown memory type
CUOBJ_MEMORY_INVALID = 4 // Invalid memory type
} cuObjMemoryType_t;