Skip to content

Commit

Permalink
Merge pull request #21 from JiabinYang/refine_python_c_api
Browse files Browse the repository at this point in the history
refine python c api
  • Loading branch information
JiabinYang authored Nov 18, 2021
2 parents aeec32f + 9b476a0 commit 37e0f6d
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 55 deletions.
77 changes: 36 additions & 41 deletions paddle/fluid/pybind/eager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ namespace pybind {

namespace py = ::pybind11;

PyTypeObject* pEagerTensorType;
PyTypeObject* p_eager_tensor_type;

PyObject* eagertensor_new(PyTypeObject* type, PyObject* args,
PyObject* kwargs) {
PyObject* obj = type->tp_alloc(type, 0);
if (obj) {
auto v = (EagerTensorObject*)obj; // NOLINT
auto v = reinterpret_cast<EagerTensorObject*>(obj);
new (&(v->eagertensor)) egr::EagerTensor();
}
return obj;
Expand All @@ -49,16 +49,11 @@ static void eagertensor_dealloc(EagerTensorObject* self) {
Py_TYPE(self)->tp_free(reinterpret_cast<PyObject*>(self));
}

static int eagertensor_init(EagerTensorObject* self, PyObject* args,
PyObject* kwargs) {
return 0;
}

extern struct PyGetSetDef variable_properties[];

extern PyMethodDef variable_methods[];

PyTypeObject EagerTensorType = {
PyTypeObject eager_tensor_type = {
PyVarObject_HEAD_INIT(NULL, 0) "core_avx.eager.EagerTensor", /* tp_name */
sizeof(EagerTensorObject), /* tp_basicsize */
0, /* tp_itemsize */
Expand All @@ -78,50 +73,50 @@ PyTypeObject EagerTensorType = {
0, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
Py_TPFLAGS_HEAPTYPE, /* tp_flags */
0, /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */
0, /* tp_richcompare */
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
variable_methods, /* tp_methods */
0, /* tp_members */
variable_properties, /* tp_getset */
0, /* tp_base */
0, /* tp_dict */
0, /* tp_descr_get */
0, /* tp_descr_set */
0, /* tp_dictoffset */
(initproc)eagertensor_init, /* tp_init */
0, /* tp_alloc */
eagertensor_new, /* tp_new */
0, /* tp_free */
0, /* tp_is_gc */
0, /* tp_bases */
0, /* tp_mro */
0, /* tp_cache */
0, /* tp_subclasses */
0, /* tp_weaklist */
0, /* tp_del */
0 /* tp_version_tag */
Py_TPFLAGS_HEAPTYPE, /* tp_flags */
0, /* tp_doc */
0, /* tp_traverse */
0, /* tp_clear */
0, /* tp_richcompare */
0, /* tp_weaklistoffset */
0, /* tp_iter */
0, /* tp_iternext */
variable_methods, /* tp_methods */
0, /* tp_members */
variable_properties, /* tp_getset */
0, /* tp_base */
0, /* tp_dict */
0, /* tp_descr_get */
0, /* tp_descr_set */
0, /* tp_dictoffset */
0, /* tp_init */
0, /* tp_alloc */
eagertensor_new, /* tp_new */
0, /* tp_free */
0, /* tp_is_gc */
0, /* tp_bases */
0, /* tp_mro */
0, /* tp_cache */
0, /* tp_subclasses */
0, /* tp_weaklist */
0, /* tp_del */
0 /* tp_version_tag */
};

void BindEager(pybind11::module* module) {
auto m = module->def_submodule("eager");

pEagerTensorType = &EagerTensorType;
if (PyType_Ready(&EagerTensorType) < 0) {
p_eager_tensor_type = &eager_tensor_type;
if (PyType_Ready(&eager_tensor_type) < 0) {
PADDLE_THROW(platform::errors::Fatal(
"Init Paddle erroe in BindEager(PyType_Ready)."));
return;
}

Py_INCREF(&EagerTensorType);
Py_INCREF(&eager_tensor_type);
if (PyModule_AddObject(m.ptr(), "EagerTensor",
reinterpret_cast<PyObject*>(&EagerTensorType)) < 0) {
Py_DECREF(&EagerTensorType);
reinterpret_cast<PyObject*>(&eager_tensor_type)) < 0) {
Py_DECREF(&eager_tensor_type);
Py_DECREF(m.ptr());
PADDLE_THROW(platform::errors::Fatal(
"Init Paddle erroe in BindEager(PyModule_AddObject)."));
Expand Down
6 changes: 3 additions & 3 deletions paddle/fluid/pybind/eager_functions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ bool check_numpy_available() {
return ret;
}

extern PyTypeObject* pEagerTensorType;
extern PyTypeObject* p_eager_tensor_type;

static PyObject* eager_api_set_expected_place(PyObject* self, PyObject* args,
PyObject* kwargs) {
Expand Down Expand Up @@ -190,9 +190,9 @@ static inline PyObject* eager_api_numpy_to_tensor(PyObject* numpy_data,
std::shared_ptr<pten::DenseTensor> densetensor(
new pten::DenseTensor(std::move(shared_storage), std::move(meta)));

PyObject* obj = pEagerTensorType->tp_alloc(pEagerTensorType, 0);
PyObject* obj = p_eager_tensor_type->tp_alloc(p_eager_tensor_type, 0);
if (obj) {
auto v = (EagerTensorObject*)obj; // NOLINT
auto v = reinterpret_cast<EagerTensorObject*>(obj);
new (&(v->eagertensor)) egr::EagerTensor();
v->eagertensor.set_impl(densetensor);
v->eagertensor.set_name(egr::Controller::Instance().GenerateUniqueName());
Expand Down
2 changes: 1 addition & 1 deletion paddle/fluid/pybind/eager_properties.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ int init_numpy_p() {
}
static const int numpy_initialized_m = init_numpy_p();

extern PyTypeObject* pEagerTensorType;
extern PyTypeObject* p_eager_tensor_type;

PyObject* eager_tensor_properties_get_name(EagerTensorObject* self,
void* closure) {
Expand Down
21 changes: 11 additions & 10 deletions paddle/fluid/pybind/eager_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ limitations under the License. */
namespace paddle {
namespace pybind {

extern PyTypeObject* pEagerTensorType;
extern PyTypeObject* p_eager_tensor_type;

bool PyObject_CheckLongOrConvertToLong(PyObject** obj) {
if ((PyLong_Check(*obj) && !PyBool_Check(*obj))) {
Expand All @@ -49,7 +49,7 @@ bool PyObject_CheckLongOrConvertToLong(PyObject** obj) {

bool PyObject_CheckFloatOrConvertToFloat(PyObject** obj) {
// sometimes users provide PyLong or numpy.int64 but attr is float
if (PyFloat_Check(*obj) || PyLong_Check(*obj)) { // NOLINT
if (PyFloat_Check(*obj) || PyLong_Check(*obj)) {
return true;
}
if (std::string((reinterpret_cast<PyTypeObject*>((*obj)->ob_type))->tp_name)
Expand Down Expand Up @@ -94,7 +94,7 @@ int CastPyArg2AttrInt(PyObject* obj, ssize_t arg_pos) {

int64_t CastPyArg2AttrLong(PyObject* obj, ssize_t arg_pos) {
if (PyObject_CheckLongOrConvertToLong(&obj)) {
return (int64_t)PyLong_AsLong(obj); // NOLINT
return reinterpret_cast<int64_t>(PyLong_AsLong(obj));
} else {
PADDLE_THROW(platform::errors::InvalidArgument(
"argument (position %d) must be "
Expand Down Expand Up @@ -130,7 +130,8 @@ std::string CastPyArg2AttrString(PyObject* obj, ssize_t arg_pos) {
}

egr::EagerTensor CastPyArg2EagerTensor(PyObject* obj, ssize_t arg_pos) {
if (PyObject_IsInstance(obj, reinterpret_cast<PyObject*>(pEagerTensorType))) {
if (PyObject_IsInstance(obj,
reinterpret_cast<PyObject*>(p_eager_tensor_type))) {
return reinterpret_cast<EagerTensorObject*>(obj)->eagertensor;
} else {
PADDLE_THROW(platform::errors::InvalidArgument(
Expand All @@ -148,8 +149,8 @@ std::vector<egr::EagerTensor> CastPyArg2VectorOfEagerTensor(PyObject* obj,
PyObject* item = nullptr;
for (Py_ssize_t i = 0; i < len; i++) {
item = PyList_GetItem(obj, i);
if (PyObject_IsInstance(item,
reinterpret_cast<PyObject*>(pEagerTensorType))) {
if (PyObject_IsInstance(
item, reinterpret_cast<PyObject*>(p_eager_tensor_type))) {
result.emplace_back(
reinterpret_cast<EagerTensorObject*>(item)->eagertensor);
} else {
Expand All @@ -165,8 +166,8 @@ std::vector<egr::EagerTensor> CastPyArg2VectorOfEagerTensor(PyObject* obj,
PyObject* item = nullptr;
for (Py_ssize_t i = 0; i < len; i++) {
item = PyTuple_GetItem(obj, i);
if (PyObject_IsInstance(item,
reinterpret_cast<PyObject*>(pEagerTensorType))) {
if (PyObject_IsInstance(
item, reinterpret_cast<PyObject*>(p_eager_tensor_type))) {
result.emplace_back(
reinterpret_cast<EagerTensorObject*>(item)->eagertensor);
} else {
Expand Down Expand Up @@ -211,7 +212,7 @@ PyObject* ToPyObject(const std::string& value) {
}

PyObject* ToPyObject(const egr::EagerTensor& value) {
PyObject* obj = pEagerTensorType->tp_alloc(pEagerTensorType, 0);
PyObject* obj = p_eager_tensor_type->tp_alloc(p_eager_tensor_type, 0);
if (obj) {
auto v = reinterpret_cast<EagerTensorObject*>(obj);
new (&(v->eagertensor)) egr::EagerTensor();
Expand Down Expand Up @@ -277,7 +278,7 @@ PyObject* ToPyObject(const std::vector<egr::EagerTensor>& value) {
PyObject* result = PyList_New((Py_ssize_t)value.size());

for (size_t i = 0; i < value.size(); i++) {
PyObject* obj = pEagerTensorType->tp_alloc(pEagerTensorType, 0);
PyObject* obj = p_eager_tensor_type->tp_alloc(p_eager_tensor_type, 0);
if (obj) {
auto v = reinterpret_cast<EagerTensorObject*>(obj);
new (&(v->eagertensor)) egr::EagerTensor();
Expand Down

1 comment on commit 37e0f6d

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on 37e0f6d Nov 18, 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: #21 Commit ID: 37e0f6d contains failed CI.

🔹 Failed: PR-CI-musl

Unknown Failed
2021-11-18 16:03:26   210 |     ScaleDeviceDispatchpaddle::platform::CUDADeviceContext(
2021-11-18 16:03:26 | ^~~~~~~~~~~~~~~~~
2021-11-18 16:03:26 | CPUDeviceContext
2021-11-18 16:03:26 make[2]: *** [paddle/fluid/eager/CMakeFiles/function_api.dir/build.make:63: paddle/fluid/eager/CMakeFiles/function_api.dir/function_api.cc.o] Error 1
2021-11-18 16:03:26 make[1]: *** [CMakeFiles/Makefile2:99143: paddle/fluid/eager/CMakeFiles/function_api.dir/all] Error 2
2021-11-18 16:03:26 make[1]: *** Waiting for unfinished jobs....
2021-11-18 16:03:26 [ 51%] Linking CXX static library libmean_op.a
2021-11-18 16:03:26 [ 51%] Built target mean_op
2021-11-18 16:03:26 [ 51%] Linking CXX static library libpaddle_inference_api.a
2021-11-18 16:03:27 [ 51%] Built target paddle_inference_api
2021-11-18 16:03:27 [ 51%] Linking CXX static library libutils.a
2021-11-18 16:03:27 [ 51%] Built target utils
2021-11-18 16:03:30 [ 51%] Linking CXX static library libelementwise_div_op.a
2021-11-18 16:03:30 [ 51%] Built target elementwise_div_op
2021-11-18 16:03:37 [ 51%] Linking CXX static library libasync_ssa_graph_executor.a
2021-11-18 16:03:37 [ 51%] Built target async_ssa_graph_executor
2021-11-18 16:03:40 [ 51%] Linking CXX static library libparallel_ssa_graph_executor.a
2021-11-18 16:03:40 [ 51%] Built target parallel_ssa_graph_executor
2021-11-18 16:03:40 make: *** [Makefile:130: all] Error 2

🔹 Failed: PR-CI-Build

Unknown Failed
2021-11-18 16:13:12 Makefile:140: recipe for target 'all' failed
2021-11-18 16:13:12 make: *** [all] Error 2
2021-11-18 16:13:12 + build_error=2
2021-11-18 16:13:12 + collect_ccache_hits
2021-11-18 16:13:12 ++ ccache -s
2021-11-18 16:13:12 ++ grep 'cache hit rate'
2021-11-18 16:13:12 ++ awk '{print $4}'
2021-11-18 16:13:12 + rate=99.79
2021-11-18 16:13:12 + echo 'ccache hit rate: 99.79%'
2021-11-18 16:13:12 ccache hit rate: 99.79%
2021-11-18 16:13:12 + echo 'ipipe_log_param_Ccache_Hit_Rate: 99.79%'
2021-11-18 16:13:12 + '[' 2 '!=' 0 ']'
2021-11-18 16:13:12 + exit 7
2021-11-18 16:13:12 + EXCODE=7
2021-11-18 16:13:12 + '[' 7 -eq 0 ']'
2021-11-18 16:13:12 + set +x
2021-11-18 16:13:12 Sorry, build failed.
2021-11-18 16:13:12 + exit 7
2021-11-18 16:13:12 {build code state=7}

🔹 Failed: PR-CI-Kunlun

Unknown Failed
2021-11-18 16:13:35 [ 29%] Linking CXX static library libfrobenius_norm_op.a
2021-11-18 16:13:35 [ 29%] Built target frobenius_norm_op
2021-11-18 16:13:47 [ 29%] Linking CXX static library libreduce_prod_op.a
2021-11-18 16:13:48 [ 29%] Built target reduce_prod_op
2021-11-18 16:14:02 [ 29%] Linking CXX static library libreduce_sum_op.a
2021-11-18 16:14:02 [ 29%] Built target reduce_sum_op
2021-11-18 16:14:02 make: *** [all] Error 2
2021-11-18 16:14:02 Makefile:140: recipe for target 'all' failed
2021-11-18 16:14:02 + build_error=2
2021-11-18 16:14:02 + collect_ccache_hits
2021-11-18 16:14:02 ++ ccache -s
2021-11-18 16:14:02 ++ grep 'cache hit rate'
2021-11-18 16:14:02 ++ awk '{print $4}'
2021-11-18 16:14:02 + rate=0.00
2021-11-18 16:14:02 ccache hit rate: 0.00%
2021-11-18 16:14:02 + echo 'ccache hit rate: 0.00%'
2021-11-18 16:14:02 + echo 'ipipe_log_param_Ccache_Hit_Rate: 0.00%'
2021-11-18 16:14:02 + '[' 2 '!=' 0 ']'
2021-11-18 16:14:02 + exit 7

🔹 Failed: PR-CI-Coverage

Unknown Failed
2021-11-18 16:13:42 Makefile:140: recipe for target 'all' failed
2021-11-18 16:13:42 make: *** [all] Error 2
2021-11-18 16:13:42 + build_error=2
2021-11-18 16:13:42 + collect_ccache_hits
2021-11-18 16:13:42 ++ ccache -s
2021-11-18 16:13:42 ++ grep 'cache hit rate'
2021-11-18 16:13:42 ++ awk '{print $4}'
2021-11-18 16:13:42 + rate=98.51
2021-11-18 16:13:42 + echo 'ccache hit rate: 98.51%'
2021-11-18 16:13:42 ccache hit rate: 98.51%
2021-11-18 16:13:42 + echo 'ipipe_log_param_Ccache_Hit_Rate: 98.51%'
2021-11-18 16:13:42 + '[' 2 '!=' 0 ']'
2021-11-18 16:13:42 + exit 7
2021-11-18 16:13:42 + EXCODE=7
2021-11-18 16:13:42 + '[' 7 -eq 0 ']'
2021-11-18 16:13:42 + set +x
2021-11-18 16:13:42 Sorry, build failed.
2021-11-18 16:13:42 + exit 7
2021-11-18 16:13:42 {build code state=7}

🔹 Failed: PR-CI-CINN

Unknown Failed
2021-11-18 16:16:43 Makefile:140: recipe for target 'all' failed
2021-11-18 16:16:43 make: *** [all] Error 2
2021-11-18 16:16:43 + build_error=2
2021-11-18 16:16:43 + collect_ccache_hits
2021-11-18 16:16:43 ++ ccache -s
2021-11-18 16:16:43 ++ grep 'cache hit rate'
2021-11-18 16:16:43 ++ awk '{print $4}'
2021-11-18 16:16:44 + rate=99.65
2021-11-18 16:16:44 + echo 'ccache hit rate: 99.65%'
2021-11-18 16:16:44 ccache hit rate: 99.65%
2021-11-18 16:16:44 + echo 'ipipe_log_param_Ccache_Hit_Rate: 99.65%'
2021-11-18 16:16:44 + '[' 2 '!=' 0 ']'
2021-11-18 16:16:44 + exit 7
2021-11-18 16:16:44 + EXCODE=7
2021-11-18 16:16:44 + '[' 7 -eq 0 ']'
2021-11-18 16:16:44 + set +x
2021-11-18 16:16:44 Sorry, build failed.
2021-11-18 16:16:44 + exit 7
2021-11-18 16:16:44 {build code state=7}

🔹 Failed: PR-CI-Windows

build_failed
2021-11-18 16:18:11 [301/1570] Building CXX object paddle\fluid\framework\CMakeFiles\op_version_registry_test.dir\op_version_registry_test.cc.obj
2021-11-18 16:18:12 [302/1570] Building CXX object paddle\fluid\framework\CMakeFiles\program_processing_test.dir\program_processing_test.cc.obj
2021-11-18 16:18:12 [303/1570] Building CXX object paddle\fluid\framework\CMakeFiles\op_registry.dir\op_registry.cc.obj
2021-11-18 16:18:12 [304/1570] Building CXX object paddle\fluid\framework\CMakeFiles\executor.dir\multi_trainer.cc.obj
2021-11-18 16:18:12 [305/1570] Building CXX object paddle\fluid\framework\CMakeFiles\lod_rank_table.dir\lod_rank_table.cc.obj
2021-11-18 16:18:12 [306/1570] Building CXX object paddle\fluid\framework\CMakeFiles\device_worker.dir\device_worker.cc.obj
2021-11-18 16:18:12 [307/1570] Building CXX object paddle\fluid\framework\CMakeFiles\tensor_util_test.dir\tensor_util_test.cc.obj
2021-11-18 16:18:12 [308/1570] Building CXX object paddle\fluid\framework\CMakeFiles\scope_test.dir\scope_test.cc.obj
2021-11-18 16:18:12 ninja: build stopped: subcommand failed.
2021-11-18 16:18:12 7
2021-11-18 16:18:12 Build Paddle failed, will exit
2021-11-18 16:18:13 EXCODE: 7

🔹 Failed: PR-CI-Windows-Inference

build_failed
2021-11-18 16:18:59 [292/1771] Building CXX object paddle\fluid\framework\CMakeFiles\proto_desc.dir\program_desc.cc.obj
2021-11-18 16:18:59 [293/1771] Building CXX object paddle\fluid\framework\CMakeFiles\program_processing.dir\program_processing.cc.obj
2021-11-18 16:18:59 [294/1771] Building CXX object paddle\fluid\framework\CMakeFiles\scope.dir\scope.cc.obj
2021-11-18 16:18:59 [295/1771] Building CXX object paddle\fluid\framework\CMakeFiles\op_version_registry_test.dir\op_version_registry_test.cc.obj
2021-11-18 16:18:59 [296/1771] Building CXX object paddle\fluid\framework\CMakeFiles\scope_test.dir\scope_test.cc.obj
2021-11-18 16:18:59 [297/1771] Building CXX object paddle\fluid\framework\CMakeFiles\tensor_util_test.dir\tensor_util_test.cc.obj
2021-11-18 16:18:59 [298/1771] Building CXX object paddle\fluid\framework\CMakeFiles\device_worker.dir\device_worker.cc.obj
2021-11-18 16:18:59 [299/1771] Building CXX object paddle\fluid\framework\CMakeFiles\executor.dir\executor.cc.obj
2021-11-18 16:18:59 ninja: build stopped: subcommand failed.
2021-11-18 16:18:59 7
2021-11-18 16:18:59 Build Paddle failed, will exit
2021-11-18 16:19:01 EXCODE: 7

🔹 Failed: PR-CI-NPU

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

🔹 Failed: PR-CI-Mac-Python3

build_failed
2021-11-18 16:32:08 5 warnings generated.
2021-11-18 16:32:08 [ 93%] Linking CXX executable cost_model_test
2021-11-18 16:32:08 [ 93%] Built target cost_model_test
2021-11-18 16:32:08 make: *** [all] Error 2
2021-11-18 16:32:08 + build_error=2
2021-11-18 16:32:08 + collect_ccache_hits
2021-11-18 16:32:08 ++ ccache -s
2021-11-18 16:32:08 ++ grep 'cache hit rate'
2021-11-18 16:32:08 ++ awk '{print $4}'
2021-11-18 16:32:08 + rate=37.32
2021-11-18 16:32:08 + echo 'ccache hit rate: 37.32%'
2021-11-18 16:32:08 ccache hit rate: 37.32%
2021-11-18 16:32:08 + echo 'ipipe_log_param_Ccache_Hit_Rate: 37.32%'
2021-11-18 16:32:08 + '[' 2 '!=' 0 ']'
2021-11-18 16:32:08 + exit 7
2021-11-18 16:32:08 EXCODE: 7
2021-11-18 16:32:08 ipipe_log_param_EXCODE: 7
2021-11-18 16:32:08 Sorry, build failed.
2021-11-18 16:32:08 + exit 7

🔹 Failed: PR-CI-ROCM-Compile

Unknown Failed
2021-11-18 16:34:57 ccache hit rate: 34.07%
2021-11-18 16:34:57 + '[' 2 '!=' 0 ']'
2021-11-18 16:34:57 + exit 7
2021-11-18 16:34:57 + EXCODE=7
2021-11-18 16:34:57 + export current_dir=/paddle
2021-11-18 16:34:57 + current_dir=/paddle
2021-11-18 16:34:57 + set +x
2021-11-18 16:34:57 + SOURCE=/paddle/build/coverage-diff
2021-11-18 16:34:57 + [[ -d /paddle/build/coverage-diff ]]
2021-11-18 16:34:57 + [[ -f /paddle/build/coverage-diff ]]
2021-11-18 16:34:57 + echo 'No such file or directory: /paddle/build/coverage-diff'
2021-11-18 16:34:57 + exit 0
2021-11-18 16:34:57 No such file or directory: /paddle/build/coverage-diff
2021-11-18 16:34:57 report uploaded
2021-11-18 16:34:57 ===================================================================
2021-11-18 16:34:57 c++-coverage
2021-11-18 16:34:57 https://xly.bce.baidu.com/ipipe/ipipe-report/report/9327238/c++-coverage/
2021-11-18 16:34:57 ===================================================================
2021-11-18 16:34:57 Sorry, build failed.

🔹 Failed: PR-CI-Windows-OPENBLAS

build_failed
2021-11-18 16:36:49        "C:\home\workspace\Paddle\build\ALL_BUILD.vcxproj" (default target) (1) ->
2021-11-18 16:36:49 "C:\home\workspace\Paddle\build\paddle\fluid\inference\tests\api\test_analyzer_lac.vcxproj" (default target) (547) ->
2021-11-18 16:36:49 LINK : fatal error LNK1104: cannot open file 'python37.lib' [C:\home\workspace\Paddle\build\paddle\fluid\inference\tests\api\test_analyzer_lac.vcxproj]
2021-11-18 16:36:49 "C:\home\workspace\Paddle\build\ALL_BUILD.vcxproj" (default target) (1) ->
2021-11-18 16:36:49 "C:\home\workspace\Paddle\build\paddle\fluid\inference\tests\api\lite_mul_model_test.vcxproj" (default target) (453) ->
2021-11-18 16:36:49 LINK : fatal error LNK1104: cannot open file 'python37.lib' [C:\home\workspace\Paddle\build\paddle\fluid\inference\tests\api\lite_mul_model_test.vcxproj]
2021-11-18 16:36:49 742 Warning(s)
2021-11-18 16:36:49 81 Error(s)
2021-11-18 16:36:49 Time Elapsed 00:32:58.90
2021-11-18 16:36:49 7
2021-11-18 16:36:49 Build Paddle failed, will exit
2021-11-18 16:36:49 EXCODE: 7

🔹 Failed: PR-CI-Py3

Unknown Failed
2021-11-18 16:38:03 + rate=46.72
2021-11-18 16:38:03 + echo 'ccache hit rate: 46.72%'
2021-11-18 16:38:03 ccache hit rate: 46.72%
2021-11-18 16:38:03 + echo 'ipipe_log_param_Ccache_Hit_Rate: 46.72%'
2021-11-18 16:38:03 + '[' 2 '!=' 0 ']'
2021-11-18 16:38:03 + exit 7
2021-11-18 16:38:03 + EXCODE=7
2021-11-18 16:38:03 + '[' 7 -eq 0 ']'
2021-11-18 16:38:03 + [[ 7 -eq 0 ]]
2021-11-18 16:38:03 + [[ 7 -eq 4 ]]
2021-11-18 16:38:03 + [[ 7 -eq 5 ]]
2021-11-18 16:38:03 + [[ 7 -eq 6 ]]
2021-11-18 16:38:03 + [[ 7 -eq 7 ]]
2021-11-18 16:38:03 + echo 'Sorry, build failed.'
2021-11-18 16:38:03 Sorry, build failed.
2021-11-18 16:38:03 + set -x
2021-11-18 16:38:03 + exit 7
2021-11-18 16:38:03 {build code state=7}
2021-11-18 16:38:13 kill agent BUILD_CODE_FAIL

🔹 Failed: PR-CI-OP-benchmark

build_failed
2021-11-18 16:45:12 + echo 'ipipe_log_param_Ccache_Hit_Rate: 97.85%'
2021-11-18 16:45:12 + '[' 2 '!=' 0 ']'
2021-11-18 16:45:12 + exit 7
2021-11-18 16:45:12 + '[' 7 -ne 0 ']'
2021-11-18 16:45:12 + LOG '[FATAL] compile fail.'
2021-11-18 16:45:12 + echo '[tools/test_ci_op_benchmark.sh:175] [FATAL] compile fail.'
2021-11-18 16:45:12 [tools/test_ci_op_benchmark.sh:175] [FATAL] compile fail.
2021-11-18 16:45:12 + exit 7
2021-11-18 16:45:12 + EXCODE=7
2021-11-18 16:45:12 + echo 'EXCODE: 7'
2021-11-18 16:45:12 EXCODE: 7
2021-11-18 16:45:12 + echo 'ipipe_log_param_EXCODE: 7'
2021-11-18 16:45:12 ipipe_log_param_EXCODE: 7
2021-11-18 16:45:12 + '[' 7 -eq 0 ']'
2021-11-18 16:45:12 + set +x
2021-11-18 16:45:12 Sorry, build failed.
2021-11-18 16:45:12 + exit 7
2021-11-18 16:45:12 {build code state=7}
2021-11-18 16:45:22 kill agent BUILD_CODE_FAIL

🔹 Failed: PR-CI-GpuPS

Unknown Failed
2021-11-18 17:10:07 + echo 'ccache hit rate: 99.79%'
2021-11-18 17:10:07 ccache hit rate: 99.79%
2021-11-18 17:10:07 + echo 'ipipe_log_param_Ccache_Hit_Rate: 99.79%'
2021-11-18 17:10:07 + '[' 2 '!=' 0 ']'
2021-11-18 17:10:07 + exit 7
2021-11-18 17:10:07 + EXCODE=7
2021-11-18 17:10:07 + '[' 7 -eq 0 ']'
2021-11-18 17:10:07 + [[ 7 -eq 0 ]]
2021-11-18 17:10:07 + [[ 7 -eq 4 ]]
2021-11-18 17:10:07 + [[ 7 -eq 5 ]]
2021-11-18 17:10:07 + [[ 7 -eq 6 ]]
2021-11-18 17:10:07 + [[ 7 -eq 7 ]]
2021-11-18 17:10:07 + echo 'Sorry, build failed.'
2021-11-18 17:10:07 Sorry, build failed.
2021-11-18 17:10:07 + set -x
2021-11-18 17:10:07 + exit 7
2021-11-18 17:10:07 {build code state=7}
2021-11-18 17:10:08 the exception:org.apache.http.conn.ConnectTimeoutException: Connect to 100.67.100.12:8237 timed out
2021-11-18 17:10:17 kill agent BUILD_CODE_FAIL

🔹 Failed: PR-CI-Inference

Unknown Failed
2021-11-18 17:31:11 + rate=13.52
2021-11-18 17:31:11 + echo 'ccache hit rate: 13.52%'
2021-11-18 17:31:11 ccache hit rate: 13.52%
2021-11-18 17:31:11 + echo 'ipipe_log_param_Ccache_Hit_Rate: 13.52%'
2021-11-18 17:31:11 + '[' 2 '!=' 0 ']'
2021-11-18 17:31:11 + exit 7
2021-11-18 17:31:11 + EXCODE=7
2021-11-18 17:31:11 + '[' 7 -eq 0 ']'
2021-11-18 17:31:11 + [[ 7 -eq 0 ]]
2021-11-18 17:31:11 + [[ 7 -eq 4 ]]
2021-11-18 17:31:11 + [[ 7 -eq 5 ]]
2021-11-18 17:31:11 + [[ 7 -eq 6 ]]
2021-11-18 17:31:11 + [[ 7 -eq 7 ]]
2021-11-18 17:31:11 + echo 'Sorry, build failed.'
2021-11-18 17:31:11 Sorry, build failed.
2021-11-18 17:31:11 + set -x
2021-11-18 17:31:11 + exit 7
2021-11-18 17:31:11 {build code state=7}
2021-11-18 17:31:21 kill agent BUILD_CODE_FAIL

Please sign in to comment.