-
Notifications
You must be signed in to change notification settings - Fork 825
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
Refactor boxing interpreter to boxing expr #6134
Refactor boxing interpreter to boxing expr #6134
Conversation
…ata_transport_token_per_placement
…ata_transport_token_per_placement
…bugfix_data_transport_token_per_placement
…ithub.com/Oneflow-Inc/oneflow into bugfix_data_transport_token_per_placement Conflicts: oneflow/core/vm/oneflow_vm.cpp
…placement' into send_recv
Signed-off-by: daquexian <daquexian566@gmail.com>
Signed-off-by: daquexian <daquexian566@gmail.com>
* cuda base cpu mpi boxing * cpu_mpi * fix conflicts * add cpu mpi unittests * more checks and unittests * abstract_consistent_to_consistent_op_expr * fix compiler complaint * refactor consistent-to-consistent eager consisitent op interpreter * fix compiler complaint * refactor ConsistentToConsistentOpExpr * lazy interpreter (#5903) * fix bugs about consistent_id * more test_consistent_cast unittests * refactor functional::ToConsistent * refactor GetNdSbp * fix compiler complaints * Update eager_consistent_op_interpreter.cpp * Update eager_mirrored_op_interpreter.cpp * eager_boxing_1_to_n * add missing files * del useless file * minor fix * refine * refactor GetDevice4CurrentProcessCtx * refine * minor fix * Update naive_1ton_boxing_interpreter.cpp * eager_boxing_n_to_1 * add test case * refine * Update eager_boxing_interpreter_mgr.cpp * Update eager_boxing_interpreter_mgr.cpp * fix error * fix error * auto format by CI * fix error * refine * refine * make of_format * make of_format * Update nd_sbp.h * fix consistent id check error * refine * back up * refine * minor fix * refine * refine * refine * refine * minor fix * minor fix * refine * refine * Update nccl_boxing_function.cpp * back up * refine * minor fix * refine * fix consistent meta check bug * zoom kLimitParallelConfString * refine * add nccl functional api * Update naive_n_to_1_boxing.cpp * minor fix * refine * refine * naive_generic_boxing * refine * test case * back up * back up * fix nccl deadlock bug * add test case * add test case * add test_eager_boxing_with_overlapping_placement test case * refine * add test case * add test case * fix check bug and add test case * add test case * add boxing_expr_with_inclusive_placement boxing expr * refine * refine * refine * refine * minor fix Co-authored-by: Xinqi Li <lixinqi0703106@163.com> Co-authored-by: leaves-zwx <kunta0932@gmail.com> Co-authored-by: Li Xinqi <lixinqi2010@gmail.com> Co-authored-by: oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com> Co-authored-by: oneflow-ci-bot <ci-bot@oneflow.org>
…refactor_BoxingInterpreter_to_BoxingExpr Conflicts: oneflow/core/framework/op_interpreter/boxing/eager_boxing_interpreter_mgr.cpp oneflow/core/framework/op_interpreter/boxing/naive_b2p_boxing_interpreter.cpp
if (tensor_nd_sbp == out->nd_sbp()) { return tensor; } | ||
// reset sbp if parallel_num == 1 and reset transport_token |
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.
由于会对输出设置transport_token,故即使输入输出的placement和sbp一样也不能直接返回tensor
@@ -45,20 +45,6 @@ class EagerBoxingInterpreter { | |||
Symbol<ParallelDesc> out_parallel_desc) const = 0; | |||
}; | |||
|
|||
struct EagerBoxingCall { |
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.
这些先留着。因为decompose暂时需要他们。
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.
以还原
…thub.com/Oneflow-Inc/oneflow into refactor_BoxingInterpreter_to_BoxingExpr
Speed stats:
|
…thub.com/Oneflow-Inc/oneflow into refactor_BoxingInterpreter_to_BoxingExpr
Speed stats:
|
删除旧版boxing interpreter实现,所有类型的boxing均通过boxing expr实现