2
0

SWDEV-378006 - Adding a new guarantee macro to support printing args.

Change-Id: I2083ddaf8058759bdace7d3bb1e8e3670cbeddd2
Este cometimento está contido em:
kjayapra-amd
2023-04-12 16:55:40 -04:00
cometido por Karthik Jayaprakash
ascendente 82e4859e03
cometimento 7f41a96ffb
5 ficheiros modificados com 32 adições e 37 eliminações
+2 -4
Ver ficheiro
@@ -625,10 +625,8 @@ hipError_t DynCO::initDynManagedVars(const std::string& managedVar) {
}
// Allocate managed memory for these symbols
status = ihipMallocManaged(&pointer, dvar->size());
if (status != hipSuccess) {
ClPrint(amd::LOG_ERROR, amd::LOG_API, "Status %d, failed to allocate managed memory", status);
guarantee(false, "Error during allocation of managed memory!");
}
guarantee(status == hipSuccess, "Status %d, failed to allocate managed memory", status);
// update as manager variable and set managed memory pointer and size
auto it = vars_.find(managedVar);
it->second->setManagedVarInfo(pointer, dvar->size());