SWDEV-465509 - Save the handle type during import function.
Change-Id: If069abb6cd474a7b071617757041402b53575414
[ROCm/clr commit: 8ddb023512]
Цей коміт міститься в:
@@ -235,6 +235,7 @@ hipError_t hipMemImportFromShareableHandle(hipMemGenericAllocationHandle_t* hand
|
|||||||
prop.type = hipMemAllocationTypePinned;
|
prop.type = hipMemAllocationTypePinned;
|
||||||
prop.location.type = hipMemLocationTypeDevice;
|
prop.location.type = hipMemLocationTypeDevice;
|
||||||
prop.location.id = hip::getCurrentDevice()->deviceId();
|
prop.location.id = hip::getCurrentDevice()->deviceId();
|
||||||
|
prop.requestedHandleType = shHandleType;
|
||||||
|
|
||||||
phys_mem_obj->getUserData().deviceId = hip::getCurrentDevice()->deviceId();
|
phys_mem_obj->getUserData().deviceId = hip::getCurrentDevice()->deviceId();
|
||||||
phys_mem_obj->getUserData().data = new hip::GenericAllocation(*phys_mem_obj, 0, prop);
|
phys_mem_obj->getUserData().data = new hip::GenericAllocation(*phys_mem_obj, 0, prop);
|
||||||
|
|||||||
Посилання в новій задачі
Заблокувати користувача