-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add changes for multi dev demo Signed-off-by: daquexian <daquexian566@gmail.com> * add part of backward hook Signed-off-by: daquexian <daquexian566@gmail.com> * update Signed-off-by: daquexian <daquexian566@gmail.com> * add naive init_with_env Signed-off-by: daquexian <daquexian566@gmail.com> * update Signed-off-by: daquexian <daquexian566@gmail.com> * update Signed-off-by: daquexian <daquexian566@gmail.com> * support_multi_client * update Signed-off-by: daquexian <daquexian566@gmail.com> * Remove unused code * Fix multi client launch * fix __main__ bug * update abcd op Signed-off-by: daquexian <daquexian566@gmail.com> * fix multi client sync, make nccl instr ordered Signed-off-by: daquexian <daquexian566@gmail.com> * temp changes Signed-off-by: daquexian <daquexian566@gmail.com> * Use functional api instead of op_expr_helper::XXXOp. * align with latest master, remove unused code Signed-off-by: daquexian <daquexian566@gmail.com> * local rank returns 0 when no env var, save is_multi_client in EnvDesc Signed-off-by: daquexian <daquexian566@gmail.com> * move is_multi_client to ProcessCtx, rename cuda_d2d device to nccl, remove unused code Signed-off-by: daquexian <daquexian566@gmail.com> * abcd -> return_first_input op Signed-off-by: daquexian <daquexian566@gmail.com> * remove launch.py for now Signed-off-by: daquexian <daquexian566@gmail.com> * refine Signed-off-by: daquexian <daquexian566@gmail.com> * update IsMultiClient in env_util.py Signed-off-by: daquexian <daquexian566@gmail.com> * rm multi_dev_demo.py Signed-off-by: daquexian <daquexian566@gmail.com> * remove exported functions in env_util.py Signed-off-by: daquexian <daquexian566@gmail.com> * remove unused op expr helper func Signed-off-by: daquexian <daquexian566@gmail.com> * fix bug Signed-off-by: daquexian <daquexian566@gmail.com> * remove ddp code Signed-off-by: daquexian <daquexian566@gmail.com> * refine env.init. only call env.init in init.py when multi client Signed-off-by: daquexian <daquexian566@gmail.com> * revert unrelated changes Signed-off-by: daquexian <daquexian566@gmail.com> * add missing parameter Signed-off-by: daquexian <daquexian566@gmail.com> * fix python api bug Signed-off-by: daquexian <daquexian566@gmail.com> * address comments Signed-off-by: daquexian <daquexian566@gmail.com> Co-authored-by: clackhan <han_binbin@163.com> Co-authored-by: hjchen2 <chenhoujiangcug@gmail.com> Co-authored-by: oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
- Loading branch information
1 parent
49b95c0
commit 5806e2b
Showing
19 changed files
with
155 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
Copyright 2020 The OneFlow Authors. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
#include <pybind11/pybind11.h> | ||
#include "oneflow/api/python/of_api_registry.h" | ||
#include "oneflow/core/vm/vm_util.h" | ||
|
||
ONEFLOW_API_PYBIND11_MODULE("eager.multi_client", m) { | ||
using namespace oneflow; | ||
namespace py = pybind11; | ||
m.def( | ||
"Sync", []() { vm::MultiClientSync().GetOrThrow(); }, | ||
py::call_guard<py::gil_scoped_release>()); | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.