SWDEV-297448 - Add debug log print
Change-Id: Ieba1b2e5d766e3fbe84dfc875dde8268166b3f99
이 커밋은 다음에 포함됨:
1 부모
4be447ab8d
커밋
2e26ed1cbb
2 파일이 변경됨
+3
-1
검색과 일치하는 파일 없음
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
새 이슈에서 참조
사용자 차단