SWDEV-457747 Fix disabled Unit_hipMemSetAccess_Vmm2PeerPeerMemCpy test

Change-Id: If83dce52a60dcad94397afe758dc8ebf03d6c69a
This commit is contained in:
Vladana Stojiljkovic
2024-06-14 13:17:47 +02:00
committed by Rakesh Roy
parent 8b15996041
commit db697c1873
3 changed files with 8 additions and 2 deletions
@@ -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));