SWDEV-446298 - Adding error code to the logs on p2p hsa api failure.

Change-Id: Ic41b1ad1b64cca0e31986337a83a5146d52a7328
이 커밋은 다음에 포함됨:
kjayapra-amd 작성하고 Karthik Jayaprakash가 2024-04-10 06:00:00 -04:00를 커밋함
1 부모 481912a1fd
커밋 2b8634bada
1 파일이 변경됨
+2 -2
+2 -2
파일 보기
@@ -2275,7 +2275,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 failed - hsa_amd_agents_allow_access");
LogPrintfError("Allow p2p access failed - hsa_amd_agents_allow_access with err %d", stat);
return false;
}
}
@@ -2291,7 +2291,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 - hsa_amd_agents_allow_access");
LogPrintfError("Allow p2p access failed - hsa_amd_agents_allow_access with err: %d", stat);
return false;
}
}