Browse Source

dlog device log

tags/v1.2.0
taoxiangdong 4 years ago
parent
commit
afe91245b0
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      ge/client/ge_api.cc

+ 7
- 0
ge/client/ge_api.cc View File

@@ -129,6 +129,9 @@ Status GEInitializeImpl(const std::map<string, string> &options) {

// Initialize GE, prepare for execution, call GELib::Initialize
Status GEInitialize(const std::map<string, string> &options) {
if (DlogReportInitialize() != SUCCESS) {
GELOGW("Dlog report device log initialize failed.");
}
return GEInitializeImpl(options);
}

@@ -187,6 +190,10 @@ Status GEFinalize() {
// to avoid memory fragment, use malloc_trim to back free stack to system
malloc_trim(0);

if (DlogReportFinalize() != SUCCESS) {
GELOGW("Dlog report device log finalize failed.");
}

GELOGT(TRACE_STOP, "GEFinalize finished");
return ret;
}


Loading…
Cancel
Save