Browse Source

bugfix for l1 data dump

tags/v1.2.0
gengchao4@huawei.com 4 years ago
parent
commit
f51a80f3ab
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      ge/graph/load/new_model_manager/davinci_model.cc

+ 6
- 1
ge/graph/load/new_model_manager/davinci_model.cc View File

@@ -4160,7 +4160,12 @@ Status DavinciModel::InitL1DataDumperArgs() {
GE_CHK_RT_RET(rtMalloc(&l1_fusion_addr_, kDumpL1FusionOpMByteSize, RT_MEMORY_DDR));

// send l1fusion dump addr to rts
GE_CHK_RT_RET(rtDumpAddrSet(rt_model_handle_, l1_fusion_addr_, kDumpL1FusionOpMByteSize, kDumpFlagOfL1Fusion));
if (rtDumpAddrSet(rt_model_handle_, l1_fusion_addr_, kDumpL1FusionOpMByteSize, kDumpFlagOfL1Fusion) !=
RT_ERROR_NONE) {
GELOGE(FAILED, "Call rtDumpAddrSet failed");
GE_CHK_RT(rtFree(l1_fusion_addr_));
return FAILED;
}

// set addr for l1 data dump
data_dumper_.SetL1FusionAddr(l1_fusion_addr_);


Loading…
Cancel
Save