Browse Source

!9451 OpDebuger adapt to new run package

From: @jojobugfree
Reviewed-by: @chujinjin,@jjfeing
Signed-off-by: @chujinjin
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
ba88bf90c6
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mindspore/ccsrc/backend/kernel_compiler/ascend_kernel_mod.h

+ 2
- 1
mindspore/ccsrc/backend/kernel_compiler/ascend_kernel_mod.h View File

@@ -33,7 +33,8 @@ class AscendKernelMod : public KernelMod {
uint32_t block_dim() { return block_dim_; }
uint32_t stream_id() { return stream_id_; }
virtual bool NeedDump() {
return DumpJsonParser::GetInstance().NeedDump(kernel_name_) && DumpJsonParser::GetInstance().async_dump_enabled();
const auto &dump_json = DumpJsonParser::GetInstance();
return dump_json.NeedDump(kernel_name_) && dump_json.async_dump_enabled() && dump_json.op_debug_mode() == 0;
}

protected:


Loading…
Cancel
Save