SWDEV-465509 - Save the handle type during import function.
Change-Id: If069abb6cd474a7b071617757041402b53575414
[ROCm/clr commit: 8ddb023512]
Ta zmiana jest zawarta w:
%! (template.HTML=
kjayapra-amd)złożyło 2024-08-16 10:55:36 -04:00
1 rodzic
1110a2f345
złożenie
30609c2e65
Plik 1 zmieniony
+1
@@ -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
Zablokuj użytkownika