Skip to content

Commit

Permalink
add assert dims % nranks == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
sljlp committed Nov 16, 2021
1 parent 3ef46ee commit 1972450
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions paddle/fluid/operators/collective/c_split_op_npu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ class CSplitOpNPUKernel : public framework::OpKernel<T> {
auto dims = x->dims();
int axis = dims.size() - 1;
auto dims_size = dims.size();
PADDLE_ENFORCE_EQ(
dims[dims_size - 1] % nranks, 0,
platform::errors::PreconditionNotMet("The last dim size (%d) must be "
"devided by nranks (%d).",
dims[dims_size - 1], nranks));
dims[dims_size - 1] /= nranks;
out->mutable_data<T>(dims, place);

Expand Down

1 comment on commit 1972450

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on 1972450 Nov 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️ CI failures summary

🔍 PR: #9 Commit ID: 1972450 contains failed CI.

🔹 Failed: PR-CI-APPROVAL

Unknown Failed
2021-11-16 18:07:36 + git merge --no-edit origin_pr
2021-11-16 18:07:37 自动合并 python/paddle/fluid/backward.py
2021-11-16 18:07:37 自动合并 python/paddle/distributed/fleet/meta_parallel/parallel_layers/random.py
2021-11-16 18:07:37 冲突(内容):合并冲突于 python/paddle/distributed/fleet/meta_parallel/parallel_layers/random.py
2021-11-16 18:07:37 自动合并 python/paddle/distributed/fleet/launch_utils.py
2021-11-16 18:07:37 冲突(内容):合并冲突于 python/paddle/distributed/fleet/launch_utils.py
2021-11-16 18:07:37 自动合并 python/paddle/distributed/fleet/launch.py
2021-11-16 18:07:37 冲突(内容):合并冲突于 python/paddle/distributed/fleet/launch.py
2021-11-16 18:07:37 自动合并 paddle/fluid/operators/seed_op.h
2021-11-16 18:07:37 冲突(内容):合并冲突于 paddle/fluid/operators/seed_op.h
2021-11-16 18:07:37 自动合并 paddle/fluid/operators/seed_op.cc
2021-11-16 18:07:37 冲突(内容):合并冲突于 paddle/fluid/operators/seed_op.cc
2021-11-16 18:07:37 自动合并 paddle/fluid/operators/lookup_table_v2_op_npu.cc
2021-11-16 18:07:37 冲突(内容):合并冲突于 paddle/fluid/operators/lookup_table_v2_op_npu.cc
2021-11-16 18:07:37 自动合并 paddle/fluid/operators/fill_constant_op_npu.cc
2021-11-16 18:07:37 冲突(内容):合并冲突于 paddle/fluid/operators/fill_constant_op_npu.cc
2021-11-16 18:07:37 自动合并 paddle/fluid/operators/dropout_impl_util.h
2021-11-16 18:07:37 自动合并 paddle/fluid/operators/collective/c_embedding_op_npu.cc
2021-11-16 18:07:37 自动合并失败,修正冲突然后提交修正的结果。

🔹 Failed: PR-CI-iScan-Python

Unknown Failed
Unknown Failed

🔹 Failed: PR-CI-iScan-C

Unknown Failed
Unknown Failed

🔹 Failed: PR-CI-OP-benchmark

failed in build-docker-image job
failed in build-docker-image job

🔹 Failed: PR-CI-Windows-Inference

Unknown Failed
2021-11-16 18:10:40 CONFLICT (content): Merge conflict in paddle/fluid/operators/seed_op.cc
2021-11-16 18:10:40 Auto-merging paddle/fluid/operators/lookup_table_v2_op_npu.cc
2021-11-16 18:10:40 CONFLICT (content): Merge conflict in paddle/fluid/operators/lookup_table_v2_op_npu.cc
2021-11-16 18:10:40 Auto-merging paddle/fluid/operators/fill_constant_op_npu.cc
2021-11-16 18:10:40 CONFLICT (content): Merge conflict in paddle/fluid/operators/fill_constant_op_npu.cc
2021-11-16 18:10:40 Auto-merging paddle/fluid/operators/dropout_impl_util.h
2021-11-16 18:10:40 Auto-merging paddle/fluid/operators/collective/c_embedding_op_npu.cc
2021-11-16 18:10:40 Removing paddle/fluid/framework/paddle2cinn/cinn_runner.h
2021-11-16 18:10:40 Removing paddle/fluid/framework/paddle2cinn/cinn_runner.cc
2021-11-16 18:10:40 Removing paddle/fluid/framework/paddle2cinn/cinn_compiled_object.h
2021-11-16 18:10:40 Removing paddle/fluid/framework/paddle2cinn/cinn_compiled_object.cc
2021-11-16 18:10:40 Removing paddle/fluid/framework/custom_tensor_utils.h
2021-11-16 18:10:40 Removing paddle/fluid/extension/src/ext_tensor.cu
2021-11-16 18:10:40 Removing paddle/fluid/extension/src/ext_tensor.cc
2021-11-16 18:10:40 Removing paddle/fluid/extension/include/ext_tensor.h
2021-11-16 18:10:40 Removing paddle/fluid/extension/include/ext_dtype.h
2021-11-16 18:10:40 Removing log
2021-11-16 18:10:40 Automatic merge failed; fix conflicts and then commit the result.
2021-11-16 18:10:40 C:\Users\Administrator\Downloads\workspace\1fad15d5-ebad-498b-8445-47cd4547d2b6\Paddle>if 1 NEQ 0 exit /b 1

🔹 Failed: PR-CI-ROCM-Compile

Unknown Failed
2021-11-16 18:13:47 Auto-merging cmake/external/xpu.cmake
2021-11-16 18:13:47 CONFLICT (add/add): Merge conflict in cmake/external/xpu.cmake
2021-11-16 18:13:47 Auto-merging cmake/external/lite.cmake
2021-11-16 18:13:47 CONFLICT (add/add): Merge conflict in cmake/external/lite.cmake
2021-11-16 18:13:47 Auto-merging cmake/external/boost.cmake
2021-11-16 18:13:47 CONFLICT (add/add): Merge conflict in cmake/external/boost.cmake
2021-11-16 18:13:47 Auto-merging cmake/external/ascend.cmake
2021-11-16 18:13:47 CONFLICT (add/add): Merge conflict in cmake/external/ascend.cmake
2021-11-16 18:13:47 Auto-merging README_cn.md
2021-11-16 18:13:47 CONFLICT (add/add): Merge conflict in README_cn.md
2021-11-16 18:13:47 Auto-merging README.md
2021-11-16 18:13:47 CONFLICT (add/add): Merge conflict in README.md
2021-11-16 18:13:47 Auto-merging CMakeLists.txt
2021-11-16 18:13:47 CONFLICT (add/add): Merge conflict in CMakeLists.txt
2021-11-16 18:13:47 Auto-merging AUTHORS.md
2021-11-16 18:13:47 CONFLICT (add/add): Merge conflict in AUTHORS.md
2021-11-16 18:13:47 Auto-merging .gitignore
2021-11-16 18:13:47 CONFLICT (add/add): Merge conflict in .gitignore
2021-11-16 18:13:47 Automatic merge failed; fix conflicts and then commit the result.

🔹 Failed: PR-CI-Windows-OPENBLAS

Unknown Failed
2021-11-16 18:35:13 CONFLICT (content): Merge conflict in paddle/fluid/operators/seed_op.cc
2021-11-16 18:35:13 Auto-merging paddle/fluid/operators/lookup_table_v2_op_npu.cc
2021-11-16 18:35:13 CONFLICT (content): Merge conflict in paddle/fluid/operators/lookup_table_v2_op_npu.cc
2021-11-16 18:35:13 Auto-merging paddle/fluid/operators/fill_constant_op_npu.cc
2021-11-16 18:35:13 CONFLICT (content): Merge conflict in paddle/fluid/operators/fill_constant_op_npu.cc
2021-11-16 18:35:13 Auto-merging paddle/fluid/operators/dropout_impl_util.h
2021-11-16 18:35:13 Auto-merging paddle/fluid/operators/collective/c_embedding_op_npu.cc
2021-11-16 18:35:13 Removing paddle/fluid/framework/paddle2cinn/cinn_runner.h
2021-11-16 18:35:13 Removing paddle/fluid/framework/paddle2cinn/cinn_runner.cc
2021-11-16 18:35:13 Removing paddle/fluid/framework/paddle2cinn/cinn_compiled_object.h
2021-11-16 18:35:13 Removing paddle/fluid/framework/paddle2cinn/cinn_compiled_object.cc
2021-11-16 18:35:13 Removing paddle/fluid/framework/custom_tensor_utils.h
2021-11-16 18:35:13 Removing paddle/fluid/extension/src/ext_tensor.cu
2021-11-16 18:35:13 Removing paddle/fluid/extension/src/ext_tensor.cc
2021-11-16 18:35:13 Removing paddle/fluid/extension/include/ext_tensor.h
2021-11-16 18:35:13 Removing paddle/fluid/extension/include/ext_dtype.h
2021-11-16 18:35:13 Removing log
2021-11-16 18:35:13 Automatic merge failed; fix conflicts and then commit the result.
2021-11-16 18:35:13 C:\home\workspace\Paddle>if 1 NEQ 0 exit /b 1

🔹 Failed: PR-CI-musl

Unknown Failed
2021-11-16 18:52:56 Auto-merging paddle/fluid/operators/seed_op.cc
2021-11-16 18:52:56 CONFLICT (content): Merge conflict in paddle/fluid/operators/seed_op.cc
2021-11-16 18:52:56 Auto-merging paddle/fluid/operators/lookup_table_v2_op_npu.cc
2021-11-16 18:52:56 CONFLICT (content): Merge conflict in paddle/fluid/operators/lookup_table_v2_op_npu.cc
2021-11-16 18:52:56 Auto-merging paddle/fluid/operators/fill_constant_op_npu.cc
2021-11-16 18:52:56 CONFLICT (content): Merge conflict in paddle/fluid/operators/fill_constant_op_npu.cc
2021-11-16 18:52:56 Auto-merging paddle/fluid/operators/dropout_impl_util.h
2021-11-16 18:52:56 Removing paddle/fluid/framework/paddle2cinn/cinn_runner.h
2021-11-16 18:52:56 Removing paddle/fluid/framework/paddle2cinn/cinn_runner.cc
2021-11-16 18:52:56 Removing paddle/fluid/framework/paddle2cinn/cinn_compiled_object.h
2021-11-16 18:52:56 Removing paddle/fluid/framework/paddle2cinn/cinn_compiled_object.cc
2021-11-16 18:52:56 Auto-merging paddle/fluid/framework/ir/mkldnn/softplus_activation_mkldnn_fuse_pass.h
2021-11-16 18:52:56 Removing paddle/fluid/framework/custom_tensor_utils.h
2021-11-16 18:52:56 Removing paddle/fluid/extension/src/ext_tensor.cu
2021-11-16 18:52:56 Removing paddle/fluid/extension/src/ext_tensor.cc
2021-11-16 18:52:56 Removing paddle/fluid/extension/include/ext_tensor.h
2021-11-16 18:52:56 Removing paddle/fluid/extension/include/ext_dtype.h
2021-11-16 18:52:56 Removing log
2021-11-16 18:52:56 Automatic merge failed; fix conflicts and then commit the result.

🔹 Failed: PR-CI-Kunlun

Unknown Failed
2021-11-16 19:27:03 + rm -rf /home/ssd1/Paddle
2021-11-16 19:27:12 + '[' -f /home/ssd1/Paddle.tar.gz ']'
2021-11-16 19:27:12 + rm -rf /home/ssd1/Paddle.tar.gz
2021-11-16 19:27:12 + cd /home/ssd1
2021-11-16 19:27:12 + set -x
2021-11-16 19:27:12 + export WITH_CACHE=ON
2021-11-16 19:27:12 + WITH_CACHE=ON
2021-11-16 19:27:12 + set +x
2021-11-16 19:27:19 + tar xf Paddle.tar.gz
2021-11-16 19:27:20 + cd Paddle
2021-11-16 19:27:20 + git config --global user.name PaddleCI
2021-11-16 19:27:20 + git config --global user.email [email protected]
2021-11-16 19:27:20 + set -xe
2021-11-16 19:27:20 + git remote add upstream https://github.com/PaddlePaddle/Paddle.git
2021-11-16 19:27:20 + git pull upstream develop
2021-11-16 19:27:23 来自 https://github.com/PaddlePaddle/Paddle
2021-11-16 19:27:23 * branch develop -> FETCH_HEAD
2021-11-16 19:27:23 * [新分支] develop -> upstream/develop
2021-11-16 19:27:24 fatal: 拒绝合并无关的历史

Please sign in to comment.