Skip to content

Commit

Permalink
merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
zyfncg committed Nov 1, 2021
1 parent 8ee3572 commit 2b6a565
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 32 deletions.
13 changes: 0 additions & 13 deletions paddle/fluid/framework/operator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1764,10 +1764,7 @@ OpKernelType OperatorWithKernel::GetKernelTypeForVar(
KernelSignature OperatorWithKernel::GetExpectedPtenKernelArgs(
const ExecutionContext& ctx) const {
if (!KernelSignatureMap::Instance().Has(Type())) {
<<<<<<< HEAD
=======
// TODO(chenweihang): we can generate this map by proto info in compile time
>>>>>>> b9fdd3bc0f4f22af17a81bb8a50a337b563c876b
KernelArgsNameMakerByOpProto maker(Info().proto_);
KernelSignatureMap::Instance().Emplace(
Type(), std::move(maker.GetKernelSignature()));
Expand All @@ -1786,15 +1783,9 @@ pten::KernelContext OperatorWithKernel::BuildPtenKernelContext(
// 5. kernel input is not DenseTensor
pten::KernelContext op_kernel_ctx(dev_ctx);

<<<<<<< HEAD
auto& input_names = std::get<0>(pt_kernel_signature_->second);
auto& attr_names = std::get<1>(pt_kernel_signature_->second);
auto& output_names = std::get<2>(pt_kernel_signature_->second);
=======
auto& input_names = std::get<0>(pt_kernel_signature_->args);
auto& attr_names = std::get<1>(pt_kernel_signature_->args);
auto& output_names = std::get<2>(pt_kernel_signature_->args);
>>>>>>> b9fdd3bc0f4f22af17a81bb8a50a337b563c876b

auto input_defs = pt_kernel_->args_def().input_defs();
auto attr_defs = pt_kernel_->args_def().attribute_defs();
Expand Down Expand Up @@ -1853,11 +1844,7 @@ pten::KernelContext OperatorWithKernel::BuildPtenKernelContext(
// attribtue type by attr_defs
if (std::type_index(attr.type()) == std::type_index(typeid(float))) {
op_kernel_ctx.EmplaceBackAttr(
<<<<<<< HEAD
pten::Scalar(BOOST_GET_CONST(float, attr)));
=======
std::move(pten::Scalar(BOOST_GET_CONST(float, attr))));
>>>>>>> b9fdd3bc0f4f22af17a81bb8a50a337b563c876b
} else {
PADDLE_THROW(platform::errors::Unimplemented(
"unsupported cast op attribute `%s` to Scalar when construct "
Expand Down
4 changes: 0 additions & 4 deletions paddle/pten/hapi/lib/linalg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ limitations under the License. */
#include "paddle/pten/core/kernel_context.h"
#include "paddle/pten/hapi/lib/kernel_dispatch.h"
#include "paddle/pten/hapi/lib/utils/allocator.h"
<<<<<<< HEAD
=======
#include "paddle/pten/infershape/binary.h"
>>>>>>> b9fdd3bc0f4f22af17a81bb8a50a337b563c876b

namespace paddle {
namespace experimental {
Expand Down
6 changes: 0 additions & 6 deletions paddle/pten/kernels/cpu/linalg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@
#include "paddle/fluid/operators/math/blas.h"
#include "paddle/fluid/platform/complex.h"

<<<<<<< HEAD
#include "paddle/pten/kernels/functions/math/matmul_func.h"

=======
>>>>>>> b9fdd3bc0f4f22af17a81bb8a50a337b563c876b
namespace pten {

template <typename T>
Expand Down Expand Up @@ -88,10 +85,7 @@ PT_REGISTER_KERNEL("dot",
int64_t,
complex64,
complex128) {}
<<<<<<< HEAD

PT_REGISTER_KERNEL(
"matmul_v2", CPU, ANY, pten::Matmul, float, double, complex64, complex128) {
}
=======
>>>>>>> b9fdd3bc0f4f22af17a81bb8a50a337b563c876b
9 changes: 0 additions & 9 deletions paddle/pten/kernels/cuda/linalg.cu
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@

#include "paddle/pten/core/kernel_registry.h"
#include "paddle/pten/kernels/functions/eigen/dot.h"
<<<<<<< HEAD
#include "paddle/pten/kernels/functions/math/matmul_func.h"
=======
>>>>>>> b9fdd3bc0f4f22af17a81bb8a50a337b563c876b

// See Note [ Why still include the fluid headers? ]
#include "paddle/fluid/platform/complex.h"
Expand All @@ -34,7 +31,6 @@ void Dot(const CUDAContext& dev_ctx,
eigen::Dot<CUDAContext, T>(dev_ctx, x, y, out);
}

<<<<<<< HEAD
template <typename T>
void Matmul(const CUDAContext& dev_ctx,
const DenseTensor& x,
Expand All @@ -56,16 +52,11 @@ void Matmul(const CUDAContext& dev_ctx,
dev_ctx, x, y, out, transpose_x, transpose_y);
}

=======
>>>>>>> b9fdd3bc0f4f22af17a81bb8a50a337b563c876b
} // namespace pten

PT_REGISTER_MODULE(LinalgCUDA);

<<<<<<< HEAD
using float16 = paddle::platform::float16;
=======
>>>>>>> b9fdd3bc0f4f22af17a81bb8a50a337b563c876b
using complex64 = ::paddle::platform::complex<float>;
using complex128 = ::paddle::platform::complex<double>;

Expand Down

1 comment on commit 2b6a565

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on 2b6a565 Nov 1, 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: #36844 Commit ID: 2b6a565 contains failed CI.

🔹 Failed: PR-CI-OP-benchmark

Unknown Failed
2021-11-01 19:58:05 + '[' 8 -eq 0 ']'
2021-11-01 19:58:05 + return 8
2021-11-01 19:58:05 + exit_code=8
2021-11-01 19:58:05 + check_CHANGE_OP_MAP
2021-11-01 19:58:05 + LOG '[INFO] run function check_CHANGE_OP_MAP'
2021-11-01 19:58:05 + echo '[tools/test_ci_op_benchmark.sh:265] [INFO] run function check_CHANGE_OP_MAP'
2021-11-01 19:58:05 [tools/test_ci_op_benchmark.sh:265] [INFO] run function check_CHANGE_OP_MAP
2021-11-01 19:58:05 + for op_name in '${!CHANGE_OP_MAP[@]}'
2021-11-01 19:58:05 + '[' -z matmul,matmul,matmul.json,True ']'
2021-11-01 19:58:05 + '[' 8 -ne 0 ']'
2021-11-01 19:58:05 + LOG '[INFO] See https://github.com/PaddlePaddle/Paddle/wiki/PR-CI-OP-benchmark-Manual for details.'
2021-11-01 19:58:05 + echo '[tools/test_ci_op_benchmark.sh:275] [INFO] See https://github.com/PaddlePaddle/Paddle/wiki/PR-CI-OP-benchmark-Manual for details.'
2021-11-01 19:58:05 [tools/test_ci_op_benchmark.sh:275] [INFO] See https://github.com/PaddlePaddle/Paddle/wiki/PR-CI-OP-benchmark-Manual for details.
2021-11-01 19:58:05 + LOG '[INFO] Or you can apply for one RD (Avin0323(Recommend), Xreki, luotao1) approval to pass this PR.'
2021-11-01 19:58:05 + echo '[tools/test_ci_op_benchmark.sh:276] [INFO] Or you can apply for one RD (Avin0323(Recommend), Xreki, luotao1) approval to pass this PR.'
2021-11-01 19:58:05 [tools/test_ci_op_benchmark.sh:276] [INFO] Or you can apply for one RD (Avin0323(Recommend), Xreki, luotao1) approval to pass this PR.
2021-11-01 19:58:05 + exit 8
2021-11-01 19:58:05 {build code state=8}
2021-11-01 19:58:15 kill agent BUILD_CODE_FAIL

🔹 Failed: PR-CI-NPU

Unknown Failed
2021-11-01 20:16:46 + set +x
2021-11-01 20:16:47 + SOURCE=/paddle/build/coverage-diff
2021-11-01 20:16:47 + [[ -d /paddle/build/coverage-diff ]]
2021-11-01 20:16:47 + [[ -f /paddle/build/coverage-diff ]]
2021-11-01 20:16:47 + echo 'No such file or directory: /paddle/build/coverage-diff'
2021-11-01 20:16:47 No such file or directory: /paddle/build/coverage-diff
2021-11-01 20:16:47 + exit 0
2021-11-01 20:16:47 report uploaded
2021-11-01 20:16:47 ===================================================================
2021-11-01 20:16:47 c++-coverage
2021-11-01 20:16:47 https://xly.bce.baidu.com/ipipe/ipipe-report/report/8831065/c++-coverage/
2021-11-01 20:16:47 ===================================================================
2021-11-01 20:16:47 + [[ 7 -eq 0 ]]
2021-11-01 20:16:47 + [[ 7 -eq 4 ]]
2021-11-01 20:16:47 + [[ 7 -eq 6 ]]
2021-11-01 20:16:47 + [[ 7 -eq 7 ]]
2021-11-01 20:16:47 + echo 'Sorry, build failed.'
2021-11-01 20:16:47 + exit 7
2021-11-01 20:16:47 Sorry, build failed.

🔹 Failed: PR-CI-Coverage

test_failed
2021-11-01 21:17:20 The following tests FAILED:
2021-11-01 21:17:20 1308 - test_dist_fleet_heter_ctr (Failed)
2021-11-01 21:17:20 + EXCODE=8
2021-11-01 21:17:20 + echo 8
2021-11-01 21:17:20 8
2021-11-01 21:17:20 + echo 'ipipe_log_param_EXCODE: 8'
2021-11-01 21:17:20 ipipe_log_param_EXCODE: 8
2021-11-01 21:17:20 + '[' 8 -ne 0 ']'
2021-11-01 21:17:20 + '[' 8 -ne 9 ']'
2021-11-01 21:17:20 + exit 8
2021-11-01 21:17:20 {build code state=8}
2021-11-01 21:17:30 kill agent BUILD_CODE_FAIL

Please sign in to comment.