From 99c48bfc6d12c83f741a336e41f27e42e13946ae Mon Sep 17 00:00:00 2001 From: Rakesh Roy Date: Tue, 1 Aug 2023 20:06:34 +0530 Subject: [PATCH] SWDEV-399623 - [ABI Break] Remove 'memoryType' from hipPointerAttribute_t - To align with CUDA, 'memoryType' was deprecated & new member 'type' was added - Remove 'memoryType' and keep only 'type' Change-Id: I6aef5cea117b1509a224b693ce373231b186a438 --- 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 c8725d9ef7..3ee0177138 100644 --- a/include/hip/hip_runtime_api.h +++ b/include/hip/hip_runtime_api.h @@ -186,11 +186,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;