SWDEV-465509 - Save the handle type during import function.
Change-Id: If069abb6cd474a7b071617757041402b53575414
[ROCm/clr commit: 8ddb023512]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user