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

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 math_function)
6
add_subdirectory(jit)
7 8
cc_library(amp SRCS amp_auto_cast.cc DEPS layer )
cc_library(tracer SRCS tracer.cc DEPS layer engine program_desc_tracer amp)
9 10
cc_library(basic_engine SRCS basic_engine.cc DEPS layer gradient_accumulator)
cc_library(engine SRCS basic_engine.cc partial_grad_engine.cc DEPS layer gradient_accumulator)
M
minqiyang 已提交
11
cc_library(imperative_profiler SRCS profiler.cc)
12
if(NOT WIN32)
13
    if(WITH_NCCL)
14 15
        cc_library(imperative_all_reduce SRCS all_reduce.cc DEPS collective_helper device_context selected_rows tensor)
        cc_library(nccl_context SRCS nccl_context.cc DEPS collective_helper device_context imperative_all_reduce)
16
    endif()
17
    cc_library(data_loader SRCS data_loader.cc DEPS enforce)
18
endif(NOT WIN32)
J
Jiabin Yang 已提交
19 20

add_subdirectory(tests)