SWDEV-229840 - Improve error messages on ROCCLR Layer.

Change-Id: Iab7d9156cdc206db86385aa05023a0095ed40f92
Dieser Commit ist enthalten in:
kjayapra-amd verfasst und Karthik Jayaprakash committed 2020-04-19 20:01:49 -04:00
1 Ursprung 4e46da4fb0
Commit 7458bf9964
16 Dateien geändert
+128 -26

Keine Dateien entsprechen Ihrer Suche

Normale Datei → Ausführbare Datei
+3
Datei anzeigen
@@ -571,6 +571,7 @@ bool TransferBufferFileCommand::validateMemory() {
staging_[i] = new (memory_->getContext())
Buffer(memory_->getContext(), StagingBufferMemType, StagingBufferSize);
if (NULL == staging_[i] || !staging_[i]->create(nullptr)) {
DevLogPrintfError("Staging Create failed, Staging[%d]: 0x%x", i, staging_[i]);
return false;
}
device::Memory* mem = staging_[i]->getDeviceMemory(queue()->device());
@@ -623,6 +624,8 @@ bool CopyMemoryP2PCommand::validateMemory() {
for (uint d = 0; d < devices[0]->GlbCtx().devices().size(); ++d) {
device::Memory* mem = devices[0]->P2PStage()->getDeviceMemory(*devices[0]->GlbCtx().devices()[d]);
if (nullptr == mem) {
DevLogPrintfError("Cannot get P2P stage Device Memory for device: 0x%x \n",
devices[0]->GlbCtx().devices()[d]);
return false;
}
}