From afe91245b0d76d6679cccb8d68dce212d8d5ea77 Mon Sep 17 00:00:00 2001 From: taoxiangdong Date: Thu, 24 Dec 2020 15:33:25 +0800 Subject: [PATCH] dlog device log --- ge/client/ge_api.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ge/client/ge_api.cc b/ge/client/ge_api.cc index 66958310..95928163 100644 --- a/ge/client/ge_api.cc +++ b/ge/client/ge_api.cc @@ -129,6 +129,9 @@ Status GEInitializeImpl(const std::map &options) { // Initialize GE, prepare for execution, call GELib::Initialize Status GEInitialize(const std::map &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; }