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_TRSF_NORMALIZED_COORDINATES 0x01 47 #define HIP_TRSF_READ_AS_INTEGER 0x00 48 #define HIP_TRSA_OVERRIDE_FORMAT 0x01 50 typedef enum hipArray_Format {
51 HIP_AD_FORMAT_UNSIGNED_INT8 = 0x01,
52 HIP_AD_FORMAT_UNSIGNED_INT16 = 0x02,
53 HIP_AD_FORMAT_UNSIGNED_INT32 = 0x03,
54 HIP_AD_FORMAT_SIGNED_INT8 = 0x08,
55 HIP_AD_FORMAT_SIGNED_INT16 = 0x09,
56 HIP_AD_FORMAT_SIGNED_INT32 = 0x0a,
57 HIP_AD_FORMAT_HALF = 0x10,
58 HIP_AD_FORMAT_FLOAT = 0x20
64 enum hipArray_Format Format;
65 unsigned int NumChannels;
72 enum hipArray_Format Format;
73 unsigned int NumChannels;
84 enum hipArray_Format Format;
85 unsigned int NumChannels;
87 unsigned int textureType;
93 hipMemoryType srcMemoryType;
95 hipDeviceptr_t srcDevice;
100 hipMemoryType dstMemoryType;
102 hipDeviceptr_t dstDevice;
130 typedef enum hipResourceType {
131 hipResourceTypeArray = 0x00,
132 hipResourceTypeMipmappedArray = 0x01,
133 hipResourceTypeLinear = 0x02,
134 hipResourceTypePitch2D = 0x03
140 typedef enum hipResourceViewFormat {
141 hipResViewFormatNone = 0x00,
142 hipResViewFormatUnsignedChar1 = 0x01,
143 hipResViewFormatUnsignedChar2 = 0x02,
144 hipResViewFormatUnsignedChar4 = 0x03,
145 hipResViewFormatSignedChar1 = 0x04,
146 hipResViewFormatSignedChar2 = 0x05,
147 hipResViewFormatSignedChar4 = 0x06,
148 hipResViewFormatUnsignedShort1 = 0x07,
149 hipResViewFormatUnsignedShort2 = 0x08,
150 hipResViewFormatUnsignedShort4 = 0x09,
151 hipResViewFormatSignedShort1 = 0x0a,
152 hipResViewFormatSignedShort2 = 0x0b,
153 hipResViewFormatSignedShort4 = 0x0c,
154 hipResViewFormatUnsignedInt1 = 0x0d,
155 hipResViewFormatUnsignedInt2 = 0x0e,
156 hipResViewFormatUnsignedInt4 = 0x0f,
157 hipResViewFormatSignedInt1 = 0x10,
158 hipResViewFormatSignedInt2 = 0x11,
159 hipResViewFormatSignedInt4 = 0x12,
160 hipResViewFormatHalf1 = 0x13,
161 hipResViewFormatHalf2 = 0x14,
162 hipResViewFormatHalf4 = 0x15,
163 hipResViewFormatFloat1 = 0x16,
164 hipResViewFormatFloat2 = 0x17,
165 hipResViewFormatFloat4 = 0x18,
166 hipResViewFormatUnsignedBlockCompressed1 = 0x19,
167 hipResViewFormatUnsignedBlockCompressed2 = 0x1a,
168 hipResViewFormatUnsignedBlockCompressed3 = 0x1b,
169 hipResViewFormatUnsignedBlockCompressed4 = 0x1c,
170 hipResViewFormatSignedBlockCompressed4 = 0x1d,
171 hipResViewFormatUnsignedBlockCompressed5 = 0x1e,
172 hipResViewFormatSignedBlockCompressed5 = 0x1f,
173 hipResViewFormatUnsignedBlockCompressed6H = 0x20,
174 hipResViewFormatSignedBlockCompressed6H = 0x21,
175 hipResViewFormatUnsignedBlockCompressed7 = 0x22
176 }hipResourceViewFormat;
182 enum hipResourceType resType;
189 hipMipmappedArray_t mipmap;
210 enum hipResourceViewFormat format;
214 unsigned int firstMipmapLevel;
215 unsigned int lastMipmapLevel;
216 unsigned int firstLayer;
217 unsigned int lastLayer;
224 typedef enum hipMemcpyKind {
225 hipMemcpyHostToHost = 0,
226 hipMemcpyHostToDevice = 1,
227 hipMemcpyDeviceToHost = 2,
228 hipMemcpyDeviceToDevice = 3,
263 enum hipMemcpyKind kind;
268 hipDeviceptr_t dstDevice;
272 hipMemoryType dstMemoryType;
279 hipDeviceptr_t srcDevice;
283 hipMemoryType srcMemoryType;
290 static inline struct hipPitchedPtr make_hipPitchedPtr(void* d,
size_t p,
size_t xsz,
302 static inline struct hipPos make_hipPos(size_t x, size_t y, size_t z) {
312 static inline struct hipExtent make_hipExtent(size_t w, size_t h, size_t d) {
322 typedef enum hipFunction_attribute {
323 HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK,
324 HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES,
325 HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES,
326 HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES,
327 HIP_FUNC_ATTRIBUTE_NUM_REGS,
328 HIP_FUNC_ATTRIBUTE_PTX_VERSION,
329 HIP_FUNC_ATTRIBUTE_BINARY_VERSION,
330 HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA,
331 HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES,
332 HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT,
333 HIP_FUNC_ATTRIBUTE_MAX
334 }hipFunction_attribute;
Definition: driver_types.h:247
Definition: driver_types.h:240
Definition: driver_types.h:181
Definition: driver_types.h:115
Definition: driver_types.h:77
Definition: driver_types.h:68
Definition: driver_types.h:253
Definition: driver_types.h:61
Definition: driver_types.h:233
Definition: driver_types.h:90
Definition: driver_types.h:209