未验证 提交 276b5e34 编写于 作者: W Wilber 提交者: GitHub

fix compile paddle with anakin bug

* fix compile with anakin bug

* remove useless deps test=develop

- 修复了联编anakin时,遇到的bug.
- 编译test_anakin_activate 不通过
- 编译test_anakin_engine 不通过
上级 3785f08f
......@@ -3,7 +3,7 @@ elementwise.cc activation.cc pool2d.cc concat.cc split.cc relu.cc softmax.cc
batch_norm.cc reshape.cc flatten.cc transpose.cc density_prior_box.cc
detection_out.cc scale.cc dropout.cc im2sequence.cc sum.cc affine_channel.cc
roi_align.cc shuffle_channel.cc helper.cc DEPS anakin_engine framework_proto
scope op_registry gtest)
scope op_registry gtest gflags)
cc_test(test_anakin_fc SRCS test_fc_op.cc DEPS anakin_op_converter mul_op)
cc_test(test_anakin_conv2d SRCS test_conv2d_op.cc DEPS anakin_op_converter conv_op im2col vol2col depthwise_conv)
......
......@@ -25,6 +25,7 @@ limitations under the License. */
#include "paddle/fluid/framework/block_desc.h"
#include "paddle/fluid/framework/lod_tensor.h"
#include "paddle/fluid/framework/op_registry.h"
#include "paddle/fluid/framework/program_desc.h"
#include "paddle/fluid/framework/tensor_util.h"
#include "paddle/fluid/inference/anakin/convert/op_converter.h"
#include "paddle/fluid/inference/anakin/engine.h"
......
......@@ -78,6 +78,7 @@ TEST_F(TestAnakinEngine, Execute) {
std::map<std::string, framework::LoDTensor *> outputs = {{"y", &y}};
cudaStream_t stream;
cudaStreamCreate(&stream);
engine_->Execute(inputs, outputs, stream);
auto *y_data_gpu = y_data;
......
......@@ -38,7 +38,7 @@ if (ANAKIN_SUBGRAPH)
add_subdirectory(anakin)
endif()
SET(OP_HEADER_DEPS xxhash)
SET(OP_HEADER_DEPS xxhash executor)
if (WITH_GPU)
SET(OP_HEADER_DEPS ${OP_HEADER_DEPS} cub)
endif()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册