SWDEV-366279 - updating p2p error msg
Change-Id: I294e7770efd11f511dd5817eb28bd3c97d9d4926
[ROCm/clr commit: 402504f548]
This commit is contained in:
@@ -2058,7 +2058,7 @@ bool Device::deviceAllowAccess(void* ptr) const {
|
|||||||
hsa_status_t stat = hsa_amd_agents_allow_access(p2pAgents().size(),
|
hsa_status_t stat = hsa_amd_agents_allow_access(p2pAgents().size(),
|
||||||
p2pAgents().data(), nullptr, ptr);
|
p2pAgents().data(), nullptr, ptr);
|
||||||
if (stat != HSA_STATUS_SUCCESS) {
|
if (stat != HSA_STATUS_SUCCESS) {
|
||||||
LogError("Allow p2p access");
|
LogError("Allow p2p access failed - hsa_amd_agents_allow_access");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2074,7 +2074,7 @@ bool Device::allowPeerAccess(device::Memory* memory) const {
|
|||||||
hsa_agent_t agent = getBackendDevice();
|
hsa_agent_t agent = getBackendDevice();
|
||||||
hsa_status_t stat = hsa_amd_agents_allow_access(1, &agent, nullptr, ptr);
|
hsa_status_t stat = hsa_amd_agents_allow_access(1, &agent, nullptr, ptr);
|
||||||
if (stat != HSA_STATUS_SUCCESS) {
|
if (stat != HSA_STATUS_SUCCESS) {
|
||||||
LogError("Allow p2p access failed");
|
LogError("Allow p2p access failed - hsa_amd_agents_allow_access");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
مرجع در شماره جدید
Block a user