From d267eb7d68510e9111261ac4f31d6c51509b1baa Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Mon, 9 May 2022 23:11:26 +0530 Subject: [PATCH] SWDEV-322620 - Virtual Memory Management APIs (#2621) Updated hipMemAllocationProp structure Change-Id: I7d56ddda5e2dd34c43ad70143b8faa14b6573672 --- include/hip/hip_runtime_api.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/hip/hip_runtime_api.h b/include/hip/hip_runtime_api.h index 8462ceea40..930e8d1854 100644 --- a/include/hip/hip_runtime_api.h +++ b/include/hip/hip_runtime_api.h @@ -6177,12 +6177,15 @@ hipError_t hipGraphExecEventWaitNodeSetEvent(hipGraphExec_t hGraphExec, hipGraph * Memory allocation properties */ typedef struct hipMemAllocationProp { - unsigned char compressionType; ///< Compression type - hipMemLocation location; ///< Memory location - hipMemAllocationHandleType requestedHandleType; ///< Requested handle type hipMemAllocationType type; ///< Memory allocation type - unsigned short usage; ///< Usage + hipMemAllocationHandleType requestedHandleType; ///< Requested handle type + hipMemLocation location; ///< Memory location void* win32HandleMetaData; ///< Metadata for Win32 handles + struct { + unsigned char compressionType; ///< Compression type + unsigned char gpuDirectRDMACapable; ///< RDMA capable + unsigned short usage; ///< Usage + } allocFlags; } hipMemAllocationProp; /**