SWDEV-465509 - Save the handle type during import function.

Change-Id: If069abb6cd474a7b071617757041402b53575414


[ROCm/clr commit: 8ddb023512]
This commit is contained in:
kjayapra-amd
2024-08-16 10:54:19 -04:00
rodzic 1110a2f345
commit 30609c2e65
+1
Wyświetl plik
@@ -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);