CMakeLists.txt 917 字节
Newer Older
Z
Zeng Jinle 已提交
1 2
cc_library(imperative_flag SRCS flags.cc DEPS gflags) 

3
cc_library(prepared_operator SRCS prepared_operator.cc DEPS proto_desc operator device_context lod_tensor selected_rows var_type_traits op_kernel_type data_transform)
J
Jiabin Yang 已提交
4
cc_library(layer SRCS layer.cc DEPS prepared_operator math_function imperative_flag variable_helper op_registry)
5
cc_library(gradient_accumulator SRCS gradient_accumulator.cc DEPS blas operator lod_tensor selected_rows selected_rows_functor var_type_traits layer)
6 7 8
add_subdirectory(jit)

cc_library(tracer SRCS tracer.cc DEPS layer engine program_desc_tracer)
J
Jiabin Yang 已提交
9
cc_library(engine SRCS engine.cc DEPS layer gradient_accumulator)
M
minqiyang 已提交
10
cc_library(imperative_profiler SRCS profiler.cc)
11
if(NOT WIN32)
12 13 14
    if(WITH_NCCL)
        cc_library(nccl_context SRCS nccl_context.cc DEPS device_context)
    endif()
15
    cc_library(data_loader SRCS data_loader.cc DEPS enforce)
16
endif(NOT WIN32)
J
Jiabin Yang 已提交
17 18

add_subdirectory(tests)