SWDEV-457747 Fix disabled Unit_hipMemSetAccess_Vmm2PeerPeerMemCpy test
Change-Id: If83dce52a60dcad94397afe758dc8ebf03d6c69a
This commit is contained in:
committed by
Rakesh Roy
parent
8b15996041
commit
db697c1873
@@ -806,6 +806,14 @@ TEST_CASE("Unit_hipMemSetAccess_Vmm2PeerPeerMemCpy") {
|
||||
WARN("Machine does not support Peer Access\n");
|
||||
break;
|
||||
}
|
||||
|
||||
hipMemAccessDesc accessDesc = {};
|
||||
accessDesc.location.type = hipMemLocationTypeDevice;
|
||||
accessDesc.location.id = deviceId;
|
||||
accessDesc.flags = hipMemAccessFlagsProtRead;
|
||||
// Make the address accessible to the rest of the GPUs
|
||||
HIP_CHECK(hipMemSetAccess(ptrA, size_mem, &accessDesc, 1));
|
||||
|
||||
HIP_CHECK(hipDeviceGet(&device_other, deviceId));
|
||||
HIP_CHECK(hipDeviceGetAttribute(&value, hipDeviceAttributeVirtualMemoryManagementSupported,
|
||||
device_other));
|
||||
|
||||
Reference in New Issue
Block a user