!9451 OpDebuger adapt to new run package

From: @jojobugfree
Reviewed-by: @chujinjin,@jjfeing
Signed-off-by: @chujinjin
This commit is contained in:
mindspore-ci-bot 2020-12-03 22:18:13 +08:00 committed by Gitee
commit ba88bf90c6
1 changed files with 2 additions and 1 deletions

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: