fix dependency

test=develop
revert-15661-fix-cpu-broadcast
peizhilin 6 years ago
parent db563ec2cd
commit 061299be87

@ -1,4 +1,7 @@
cc_library(subgraph_detector SRCS subgraph_detector.cc DEPS proto_desc)
if(WITH_TESTING)
add_dependencies(subgraph_detector gtest)
endif()
if (WITH_GPU AND TENSORRT_FOUND)
cc_library(tensorrt_subgraph_pass SRCS tensorrt_subgraph_pass.cc DEPS subgraph_detector tensorrt_op_teller)

@ -1,9 +1,3 @@
# make the external project built first
set(PADDLE_MEMORY_BUILD_DIR "${CMAKE_CURRENT_BINARY_DIR}/memory/build")
add_custom_command(OUTPUT ${PADDLE_MEMORY_BUILD_DIR}/.timestamp
COMMAND ${CMAKE_COMMAND} -E touch ${PADDLE_MEMORY_BUILD_DIR}/.timestamp
DEPENDS ${external_project_dependencies})
add_subdirectory(detail)
add_subdirectory(allocation)
cc_library(malloc SRCS malloc.cc DEPS place enforce allocator_facade)

@ -37,7 +37,7 @@ math_library(concat_and_split)
math_library(context_project DEPS im2col math_function)
math_library(cross_entropy)
math_library(cos_sim_functor)
math_library(depthwise_conv)
math_library(depthwise_conv DEPS cub)
math_library(im2col)
math_library(sampler)

@ -1,5 +1,5 @@
include(operators)
register_operators()
register_operators(DEPS cub)
if(WITH_GPU)
file(GLOB OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.part.cu")

@ -1,4 +1,4 @@
proto_library(profiler_proto SRCS profiler.proto DEPS framework_proto)
proto_library(profiler_proto SRCS profiler.proto DEPS framework_proto simple_threadpool)
py_proto_compile(profiler_py_proto SRCS profiler.proto)
add_custom_target(profiler_py_proto_init ALL COMMAND ${CMAKE_COMMAND} -E touch __init__.py)

Loading…
Cancel
Save