SWDEV-297448 - Add debug log print

Change-Id: Ieba1b2e5d766e3fbe84dfc875dde8268166b3f99
Este commit está contenido en:
Saleel Kudchadker
2021-08-19 11:22:55 -07:00
cometido por Maneesh Gupta
padre 4be447ab8d
commit 2e26ed1cbb
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
+1 -1
Ver fichero
@@ -746,7 +746,7 @@ bool Program::compileImplLC(const std::string& sourceCode,
}
}
else {
buildLog_ += "Error: Failed to compile opencl source (from CL or HIP source to LLVM IR).\n";
buildLog_ += "Error: Failed to compile source (from CL or HIP source to LLVM IR).\n";
}
amd::Comgr::destroy_data_set(inputs);
+2
Ver fichero
@@ -910,6 +910,8 @@ bool Buffer::create() {
dev().SystemCoarseSegment() : dev().SystemSegment());
hsa_status_t status = hsa_amd_memory_lock_to_pool(owner()->getHostMem(),
owner()->getSize(), nullptr, 0, pool, 0, &deviceMemory_);
ClPrint(amd::LOG_DEBUG, amd::LOG_MEM, "Locking to pool %p, size 0x%zx, HostPtr = %p,"
" DevPtr = %p", pool, owner()->getHostMem(), owner()->getSize(), deviceMemory_ );
if (status != HSA_STATUS_SUCCESS) {
DevLogPrintfError("Failed to lock memory to pool, failed with hsa_status: %d \n", status);
deviceMemory_ = nullptr;