SWDEV-229840 - Improve error messages on ROCCLR Layer.

Change-Id: Iab7d9156cdc206db86385aa05023a0095ed40f92


[ROCm/clr commit: 7458bf9964]
Этот коммит содержится в:
kjayapra-amd
2020-04-13 22:41:44 -04:00
коммит произвёл Karthik Jayaprakash
родитель 365054f997
Коммит 236705c62f
16 изменённых файлов: 128 добавлений и 26 удалений
Обычный файл → Исполняемый файл
+3
Просмотреть файл
@@ -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;
}
}