23 #ifndef HIP_INCLUDE_HIP_HCC_DETAIL_DRIVER_TYPES_H 24 #define HIP_INCLUDE_HIP_HCC_DETAIL_DRIVER_TYPES_H 30 typedef void* hipDeviceptr_t;
31 typedef enum hipChannelFormatKind {
32 hipChannelFormatKindSigned = 0,
33 hipChannelFormatKindUnsigned = 1,
34 hipChannelFormatKindFloat = 2,
35 hipChannelFormatKindNone = 3
36 }hipChannelFormatKind;
43 enum hipChannelFormatKind f;
46 #define HIP_TRSA_OVERRIDE_FORMAT 0x01 47 #define HIP_TRSF_READ_AS_INTEGER 0x01 48 #define HIP_TRSF_NORMALIZED_COORDINATES 0x02 49 #define HIP_TRSF_SRGB 0x10 51 typedef enum hipArray_Format {
52 HIP_AD_FORMAT_UNSIGNED_INT8 = 0x01,
53 HIP_AD_FORMAT_UNSIGNED_INT16 = 0x02,
54 HIP_AD_FORMAT_UNSIGNED_INT32 = 0x03,
55 HIP_AD_FORMAT_SIGNED_INT8 = 0x08,
56 HIP_AD_FORMAT_SIGNED_INT16 = 0x09,
57 HIP_AD_FORMAT_SIGNED_INT32 = 0x0a,
58 HIP_AD_FORMAT_HALF = 0x10,
59 HIP_AD_FORMAT_FLOAT = 0x20
65 enum hipArray_Format Format;
66 unsigned int NumChannels;
73 enum hipArray_Format Format;
74 unsigned int NumChannels;
85 enum hipArray_Format Format;
86 unsigned int NumChannels;
88 unsigned int textureType;
94 hipMemoryType srcMemoryType;
96 hipDeviceptr_t srcDevice;
101 hipMemoryType dstMemoryType;
103 hipDeviceptr_t dstDevice;
131 typedef enum hipResourceType {
132 hipResourceTypeArray = 0x00,
133 hipResourceTypeMipmappedArray = 0x01,
134 hipResourceTypeLinear = 0x02,
135 hipResourceTypePitch2D = 0x03
141 typedef enum hipResourceViewFormat {
142 hipResViewFormatNone = 0x00,
143 hipResViewFormatUnsignedChar1 = 0x01,
144 hipResViewFormatUnsignedChar2 = 0x02,
145 hipResViewFormatUnsignedChar4 = 0x03,
146 hipResViewFormatSignedChar1 = 0x04,
147 hipResViewFormatSignedChar2 = 0x05,
148 hipResViewFormatSignedChar4 = 0x06,
149 hipResViewFormatUnsignedShort1 = 0x07,
150 hipResViewFormatUnsignedShort2 = 0x08,
151 hipResViewFormatUnsignedShort4 = 0x09,
152 hipResViewFormatSignedShort1 = 0x0a,
153 hipResViewFormatSignedShort2 = 0x0b,
154 hipResViewFormatSignedShort4 = 0x0c,
155 hipResViewFormatUnsignedInt1 = 0x0d,
156 hipResViewFormatUnsignedInt2 = 0x0e,
157 hipResViewFormatUnsignedInt4 = 0x0f,
158 hipResViewFormatSignedInt1 = 0x10,
159 hipResViewFormatSignedInt2 = 0x11,
160 hipResViewFormatSignedInt4 = 0x12,
161 hipResViewFormatHalf1 = 0x13,
162 hipResViewFormatHalf2 = 0x14,
163 hipResViewFormatHalf4 = 0x15,
164 hipResViewFormatFloat1 = 0x16,
165 hipResViewFormatFloat2 = 0x17,
166 hipResViewFormatFloat4 = 0x18,
167 hipResViewFormatUnsignedBlockCompressed1 = 0x19,
168 hipResViewFormatUnsignedBlockCompressed2 = 0x1a,
169 hipResViewFormatUnsignedBlockCompressed3 = 0x1b,
170 hipResViewFormatUnsignedBlockCompressed4 = 0x1c,
171 hipResViewFormatSignedBlockCompressed4 = 0x1d,
172 hipResViewFormatUnsignedBlockCompressed5 = 0x1e,
173 hipResViewFormatSignedBlockCompressed5 = 0x1f,
174 hipResViewFormatUnsignedBlockCompressed6H = 0x20,
175 hipResViewFormatSignedBlockCompressed6H = 0x21,
176 hipResViewFormatUnsignedBlockCompressed7 = 0x22
177 }hipResourceViewFormat;
183 enum hipResourceType resType;
190 hipMipmappedArray_t mipmap;
211 enum hipResourceViewFormat format;
215 unsigned int firstMipmapLevel;
216 unsigned int lastMipmapLevel;
217 unsigned int firstLayer;
218 unsigned int lastLayer;
225 typedef enum hipMemcpyKind {
226 hipMemcpyHostToHost = 0,
227 hipMemcpyHostToDevice = 1,
228 hipMemcpyDeviceToHost = 2,
229 hipMemcpyDeviceToDevice = 3,
262 enum hipMemcpyKind kind;
269 hipDeviceptr_t dstDevice;
273 hipMemoryType dstMemoryType;
280 hipDeviceptr_t srcDevice;
284 hipMemoryType srcMemoryType;
288 static inline struct hipPitchedPtr make_hipPitchedPtr(void* d,
size_t p,
size_t xsz,
300 static inline struct hipPos make_hipPos(size_t x, size_t y, size_t z) {
310 static inline struct hipExtent make_hipExtent(size_t w, size_t h, size_t d) {
320 typedef enum hipFunction_attribute {
321 HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK,
322 HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES,
323 HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES,
324 HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES,
325 HIP_FUNC_ATTRIBUTE_NUM_REGS,
326 HIP_FUNC_ATTRIBUTE_PTX_VERSION,
327 HIP_FUNC_ATTRIBUTE_BINARY_VERSION,
328 HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA,
329 HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES,
330 HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT,
331 HIP_FUNC_ATTRIBUTE_MAX
332 }hipFunction_attribute;
Definition: driver_types.h:248
Definition: driver_types.h:241
Definition: driver_types.h:182
Definition: driver_types.h:116
Definition: driver_types.h:78
Definition: driver_types.h:69
Definition: driver_types.h:254
Definition: driver_types.h:62
Definition: driver_types.h:234
Definition: driver_types.h:265
Definition: driver_types.h:91
Definition: driver_types.h:210