!17809 adapt offline debug to sync dump using non-qualified name

From: @john_tzanakakis
Reviewed-by: @robingrosman,@yelihua
Signed-off-by: @robingrosman
This commit is contained in:
mindspore-ci-bot 2021-06-05 23:26:35 +08:00 committed by Gitee
commit b0a1963aa2
1 changed files with 5 additions and 1 deletions

View File

@ -571,9 +571,12 @@ void DebugServices::ReadDumpedTensor(std::vector<std::string> backend_name, std:
pos += dstlen;
}
std::string prefix_dump_file_name = dump_style_kernel_name;
std::string prefix_dump_file_name;
if (is_sync_mode) {
prefix_dump_file_name = dump_style_kernel_name.substr(dump_style_kernel_name.rfind("--") + 2);
prefix_dump_file_name += ".output." + std::to_string(slot[i]);
} else {
prefix_dump_file_name = dump_style_kernel_name;
}
std::string specific_dump_dir = dump_dir + "/rank_" + std::to_string(device_id[i]) + "/" + net_name + "/" +
@ -717,6 +720,7 @@ std::vector<std::shared_ptr<TensorData>> DebugServices::ReadNeededDumpedTensors(
ReplaceSrcFileName(is_sync_mode, &dump_style_name);
if (is_sync_mode) {
dump_style_name = dump_style_name.substr(dump_style_name.rfind("--") + 2);
dump_style_name.append(".output.");
}