SWDEV-378006 - Adding a new guarantee macro to support printing args.
Change-Id: I2083ddaf8058759bdace7d3bb1e8e3670cbeddd2
Este cometimento está contido em:
cometido por
Karthik Jayaprakash
ascendente
82e4859e03
cometimento
7f41a96ffb
@@ -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());
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador