CMakeLists.txt 1014 字节
Newer Older
1
if(WITH_PSLIB)
2
    cc_library(fleet_wrapper SRCS fleet_wrapper.cc DEPS framework_proto variable_helper scope pslib_brpc pslib)
3
else()
4
    cc_library(fleet_wrapper SRCS fleet_wrapper.cc DEPS framework_proto variable_helper scope)
5
endif(WITH_PSLIB)
D
dongdaxiang 已提交
6

7 8 9
if(WITH_NCCL)
    cc_library(nccl_wrapper SRCS nccl_wrapper.cc DEPS framework_proto variable_helper scope)
endif()
H
hutuxian 已提交
10
if(WITH_BOX_PS)
H
hutuxian 已提交
11
    nv_library(box_wrapper SRCS box_wrapper.cc box_wrapper.cu DEPS framework_proto lod_tensor box_ps)
H
hutuxian 已提交
12 13 14
else()
    cc_library(box_wrapper SRCS box_wrapper.cc DEPS framework_proto lod_tensor)
endif(WITH_BOX_PS)
15 16 17

if(WITH_GLOO)
    cc_library(gloo_wrapper SRCS gloo_wrapper.cc DEPS framework_proto variable_helper scope gloo)
18
    cc_library(metrics SRCS metrics.cc DEPS gloo_wrapper)
19 20
else()
    cc_library(gloo_wrapper SRCS gloo_wrapper.cc DEPS framework_proto variable_helper scope)
21
    cc_library(metrics SRCS metrics.cc DEPS gloo_wrapper)
22 23 24
endif(WITH_GLOO)

cc_test(test_fleet SRCS test_fleet.cc DEPS fleet_wrapper gloo_wrapper fs shell)