From f327d4f809f2f98d3af009c103f3e17b7220a931 Mon Sep 17 00:00:00 2001 From: Julia Jiang Date: Mon, 3 Feb 2025 14:58:53 -0500 Subject: [PATCH] SWDEV - 508961 - Update requestedHandleType in hipother repos Change-Id: I50b91dfb42bd2a4daae80a3353b642e9df03fe46 --- hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h b/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h index f63e0afba5..575904e1d3 100644 --- a/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h +++ b/hipnv/include/hip/nvidia_detail/nvidia_hip_runtime_api.h @@ -1848,7 +1848,7 @@ typedef struct hipMemAllocationProp { /** Memory allocation type */ hipMemAllocationType type; /** Requested handle type */ - hipMemAllocationHandleType requestedHandleType; + hipMemAllocationHandleType requestedHandleTypes; /** Location of allocation */ hipMemLocation location; /** @@ -2809,7 +2809,7 @@ inline static hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t att inline static CUmemAllocationProp hipMemAllocationPropToCUmemAllocationProp(const hipMemAllocationProp* prop) { CUmemAllocationProp cuProp; cuProp.type = (CUmemAllocationType)prop->type; - cuProp.requestedHandleTypes = (CUmemAllocationHandleType)prop->requestedHandleType; + cuProp.requestedHandleTypes = (CUmemAllocationHandleType)prop->requestedHandleTypes; cuProp.location.type = (CUmemLocationType)prop->location.type; cuProp.location.id = prop->location.id; cuProp.win32HandleMetaData = prop->win32HandleMetaData; @@ -2825,7 +2825,7 @@ inline static CUmemAllocationProp hipMemAllocationPropToCUmemAllocationProp(cons inline static hipMemAllocationProp CUmemAllocationPropToHipMemAllocationProp(const CUmemAllocationProp* prop) { hipMemAllocationProp hipProp; hipProp.type = (hipMemAllocationType)prop->type; - hipProp.requestedHandleType = (hipMemAllocationHandleType)prop->requestedHandleTypes; + hipProp.requestedHandleTypes = (hipMemAllocationHandleType)prop->requestedHandleTypes; hipProp.location.type = (hipMemLocationType)prop->location.type; hipProp.location.id = prop->location.id; hipProp.win32HandleMetaData = prop->win32HandleMetaData;