-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Draft ONLY] nn.Graph asymmetric input/output debug runnable #6236
Conversation
…dev_cc_fix_pipeline_stage
…dev_cc_fix_pipeline_stage
…w-Inc/oneflow into dev_cc_fix_pipeline_stage
…dev_cc_fix_pipeline_stage
…low-Inc/oneflow into dev_cc_fix_src_tick
if (node->GetTaskType() == TaskType::kSrcSubsetTick) { | ||
CHECK(rank_id2src_tick.emplace(node->machine_id(), node).second); | ||
} else if (node->GetTaskType() == TaskType::kDstSubsetTick) { | ||
CHECK(rank_id2dst_tick.emplace(node->machine_id(), node).second); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修复 BUG 1 : dst tick 也需要保证 output 和 callback notify 的顺序。
const auto& op_name = nn_graph->outputs_op_names().at(i); | ||
auto* mut_blob = eager_blob_object->mut_blob(); | ||
if (IsEmptyComponentEagerBlobObject(eager_blob_object)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修复 BUG 2: 跳过没有本 rank 分量的 push / pull cb 构建 和 send
bool IsEmptyComponentEagerBlobObject( | ||
const std::shared_ptr<vm::EagerBlobObject>& eager_blob_object) { | ||
Blob* blob = eager_blob_object->mut_blob(); | ||
if (blob && blob->shape().elem_cnt() > 0 && blob->dptr()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修复判断本 rank 分量是否存在的逻辑
header_size == rhs->blob_desc().ByteSizeOfBlobHeader()
报错 #6226 中提到的问题