From 504e670d7329bf75a31f4b1ce0eae40346a59701 Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Fri, 13 Oct 2023 20:04:54 -0400 Subject: [PATCH] SWDEV-399623 - [ABI Break] Remove 'memoryType' from hipPointerAttribute_t"" This reverts commit 8ed05a156733ae7b997038c38fe7b8437e0a2679. Reason for revert: Bringing back original change Change-Id: I33bbc9b698e07ca8e03ee6b15bcb66f5795bbe4e --- include/hip/hip_runtime_api.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/hip/hip_runtime_api.h b/include/hip/hip_runtime_api.h index be785c4df9..f85911b0d6 100644 --- a/include/hip/hip_runtime_api.h +++ b/include/hip/hip_runtime_api.h @@ -258,11 +258,7 @@ typedef enum hipMemoryType { * Pointer attributes */ typedef struct hipPointerAttribute_t { - union { - // Deprecated, use instead type - enum hipMemoryType memoryType; - enum hipMemoryType type; - }; + enum hipMemoryType type; int device; void* devicePointer; void* hostPointer;