SWDEV-366279 - updating p2p error msg

Change-Id: I294e7770efd11f511dd5817eb28bd3c97d9d4926


[ROCm/clr commit: 402504f548]
This commit is contained in:
pghafari
2022-11-22 06:17:55 -05:00
committed by Payam Ghafari
parent be5d6fb005
commit 4e6a699eae
@@ -2058,7 +2058,7 @@ bool Device::deviceAllowAccess(void* ptr) const {
hsa_status_t stat = hsa_amd_agents_allow_access(p2pAgents().size(),
p2pAgents().data(), nullptr, ptr);
if (stat != HSA_STATUS_SUCCESS) {
LogError("Allow p2p access");
LogError("Allow p2p access failed - hsa_amd_agents_allow_access");
return false;
}
}
@@ -2074,7 +2074,7 @@ bool Device::allowPeerAccess(device::Memory* memory) const {
hsa_agent_t agent = getBackendDevice();
hsa_status_t stat = hsa_amd_agents_allow_access(1, &agent, nullptr, ptr);
if (stat != HSA_STATUS_SUCCESS) {
LogError("Allow p2p access failed");
LogError("Allow p2p access failed - hsa_amd_agents_allow_access");
return false;
}
}