diff --git a/projects/hip/include/hip/hip_runtime_api.h b/projects/hip/include/hip/hip_runtime_api.h index d43526bf37..b63ffda448 100644 --- a/projects/hip/include/hip/hip_runtime_api.h +++ b/projects/hip/include/hip/hip_runtime_api.h @@ -186,7 +186,11 @@ typedef enum hipMemoryType { * Pointer attributes */ typedef struct hipPointerAttribute_t { - enum hipMemoryType type; + union { + // Deprecated, use instead type + enum hipMemoryType memoryType; + enum hipMemoryType type; + }; int device; void* devicePointer; void* hostPointer;