summaryrefslogtreecommitdiff
path: root/src/abstract_hardware_model.h
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-06-10 19:43:36 -0400
committerMengchi Zhang <[email protected]>2019-06-10 19:43:36 -0400
commitc68377b8eb2ce322e195a23062f5ba635dba546a (patch)
treeb951a6fa272bbe2ec4120259b31f0eb5c7292b09 /src/abstract_hardware_model.h
parentc29246408c963ece65515fae92540e76ac71b72b (diff)
Remove those duplicated defined
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/abstract_hardware_model.h')
-rw-r--r--src/abstract_hardware_model.h69
1 files changed, 36 insertions, 33 deletions
diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h
index 77d5f58..7455f25 100644
--- a/src/abstract_hardware_model.h
+++ b/src/abstract_hardware_model.h
@@ -173,9 +173,10 @@ enum _memory_op_t {
#include <algorithm>
#if !defined(__VECTOR_TYPES_H__)
-struct dim3 {
- unsigned int x, y, z;
-};
+#include "vector_types.h"
+//struct dim3 {
+// unsigned int x, y, z;
+//};
#endif
struct dim3comp {
bool operator() (const dim3 & a, const dim3 & b) const
@@ -454,19 +455,21 @@ protected:
#if !defined(__CUDA_RUNTIME_API_H__)
-enum cudaChannelFormatKind {
- cudaChannelFormatKindSigned,
- cudaChannelFormatKindUnsigned,
- cudaChannelFormatKindFloat
-};
+#include "builtin_types.h"
-struct cudaChannelFormatDesc {
- int x;
- int y;
- int z;
- int w;
- enum cudaChannelFormatKind f;
-};
+//enum cudaChannelFormatKind {
+// cudaChannelFormatKindSigned,
+// cudaChannelFormatKindUnsigned,
+// cudaChannelFormatKindFloat
+//};
+
+//struct cudaChannelFormatDesc {
+// int x;
+// int y;
+// int z;
+// int w;
+// enum cudaChannelFormatKind f;
+//};
struct cudaArray {
void *devPtr;
@@ -478,27 +481,27 @@ struct cudaArray {
unsigned dimensions;
};
-enum cudaTextureAddressMode {
- cudaAddressModeWrap,
- cudaAddressModeClamp
-};
+//enum cudaTextureAddressMode {
+// cudaAddressModeWrap,
+// cudaAddressModeClamp
+//};
-enum cudaTextureFilterMode {
- cudaFilterModePoint,
- cudaFilterModeLinear
-};
+//enum cudaTextureFilterMode {
+// cudaFilterModePoint,
+// cudaFilterModeLinear
+//};
-enum cudaTextureReadMode {
- cudaReadModeElementType,
- cudaReadModeNormalizedFloat
-};
+//enum cudaTextureReadMode {
+// cudaReadModeElementType,
+// cudaReadModeNormalizedFloat
+//};
-struct textureReference {
- int normalized;
- enum cudaTextureFilterMode filterMode;
- enum cudaTextureAddressMode addressMode[3];
- struct cudaChannelFormatDesc channelDesc;
-};
+//struct textureReference {
+// int normalized;
+// enum cudaTextureFilterMode filterMode;
+// enum cudaTextureAddressMode addressMode[3];
+// struct cudaChannelFormatDesc channelDesc;
+//};
#endif