SWDEV-301667 - Logging refactor

- Remove newline from logging as log function internally inserts a new
line

Change-Id: I25eb2242a1f1e87cf811bcc373d1d485b2e027a8


[ROCm/clr commit: 058b2702db]
This commit is contained in:
Saleel Kudchadker
2023-12-07 01:32:20 +00:00
parent 3dfef513b1
commit f969d89aa4
16 changed files with 77 additions and 78 deletions
+4 -4
View File
@@ -72,10 +72,10 @@ DeviceVar::DeviceVar(std::string name,
device::Program* dev_program =
program->getDeviceProgram(*g_devices.at(deviceId)->devices()[0]);
guarantee (dev_program != nullptr, "Cannot get Device Program for module: 0x%x \n", hmod);
guarantee (dev_program != nullptr, "Cannot get Device Program for module: 0x%x", hmod);
if(!dev_program->createGlobalVarObj(&amd_mem_obj_, &device_ptr_, &size_, name.c_str())) {
guarantee(false, "Cannot create GlobalVar Obj for symbol: %s \n", name.c_str());
guarantee(false, "Cannot create GlobalVar Obj for symbol: %s", name.c_str());
}
// Handle size 0 symbols
@@ -111,10 +111,10 @@ DeviceFunc::DeviceFunc(std::string name, hipModule_t hmod) : dflock_("function l
amd::Program* program = as_amd(reinterpret_cast<cl_program>(hmod));
const amd::Symbol *symbol = program->findSymbol(name.c_str());
guarantee(symbol != nullptr, "Cannot find Symbol with name: %s \n", name.c_str());
guarantee(symbol != nullptr, "Cannot find Symbol with name: %s", name.c_str());
kernel_ = new amd::Kernel(*program, *symbol, name);
guarantee(kernel_ != nullptr, "Cannot Create kernel with name: %s \n", name.c_str());
guarantee(kernel_ != nullptr, "Cannot Create kernel with name: %s", name.c_str());
}
DeviceFunc::~DeviceFunc() {