From 30609c2e65042a1d63fce2bd8a9178d2fae6ea10 Mon Sep 17 00:00:00 2001 From: kjayapra-amd Date: Fri, 16 Aug 2024 10:54:19 -0400 Subject: [PATCH] SWDEV-465509 - Save the handle type during import function. Change-Id: If069abb6cd474a7b071617757041402b53575414 [ROCm/clr commit: 8ddb0235122a38c59b8be8e6c9dd39f91eb75b26] --- projects/clr/hipamd/src/hip_vm.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/clr/hipamd/src/hip_vm.cpp b/projects/clr/hipamd/src/hip_vm.cpp index 295d1520a2..aa1bbb1cf3 100644 --- a/projects/clr/hipamd/src/hip_vm.cpp +++ b/projects/clr/hipamd/src/hip_vm.cpp @@ -235,6 +235,7 @@ hipError_t hipMemImportFromShareableHandle(hipMemGenericAllocationHandle_t* hand prop.type = hipMemAllocationTypePinned; prop.location.type = hipMemLocationTypeDevice; prop.location.id = hip::getCurrentDevice()->deviceId(); + prop.requestedHandleType = shHandleType; phys_mem_obj->getUserData().deviceId = hip::getCurrentDevice()->deviceId(); phys_mem_obj->getUserData().data = new hip::GenericAllocation(*phys_mem_obj, 0, prop);