CMakeLists.txt 3.5 KB
Newer Older
1 2
add_subdirectory(detail)

Q
qijun 已提交
3
if(WITH_GPU)
Y
Yancey1989 已提交
4
    nv_library(math_function SRCS math_function.cc math_function.cu im2col.cc im2col.cu DEPS cblas device_context framework_proto)
5 6 7
    nv_test(math_function_gpu_test SRCS math_function_test.cu DEPS math_function tensor)
    nv_library(selected_rows_functor SRCS selected_rows_functor.cc selected_rows_functor.cu DEPS selected_rows math_function)
    nv_test(selected_rows_functor_gpu_test SRCS selected_rows_functor_test.cu DEPS selected_rows_functor)
8 9
    nv_library(softmax SRCS softmax.cc softmax.cu DEPS device_context)
    nv_library(cross_entropy SRCS cross_entropy.cc cross_entropy.cu DEPS device_context)
C
chengduoZH 已提交
10
    nv_library(pooling SRCS pooling.cc pooling.cu DEPS device_context)
11
    nv_library(sequence_pooling SRCS sequence_pooling.cc sequence_pooling.cu DEPS device_context math_function)
12
    nv_library(vol2col SRCS vol2col.cc vol2col.cu DEPS device_context tensor)
D
dangqingqing 已提交
13
    nv_library(context_project SRCS context_project.cc context_project.cu DEPS device_context math_function)
X
Xi Chen 已提交
14
    nv_library(sequence2batch SRCS sequence2batch.cc sequence2batch.cu DEPS device_context tensor math_function)
Y
Yiqun Liu 已提交
15
    nv_library(sequence_padding SRCS sequence_padding.cc sequence_padding.cu DEPS lod_tensor device_context)
W
wanghaoshuang 已提交
16
    nv_library(sequence_scale SRCS sequence_scale.cc sequence_scale.cu DEPS lod_tensor device_context)
17
    nv_library(lstm_compute SRCS lstm_compute.cc lstm_compute.cu DEPS device_context activation_functions)
W
wanghaox 已提交
18
    nv_library(maxouting SRCS maxouting.cc maxouting.cu DEPS device_context)
S
sweetsky0901 已提交
19
    nv_library(unpooling SRCS unpooling.cc unpooling.cu DEPS device_context)
S
sweetsky0901 已提交
20
    nv_library(gru_compute SRCS gru_compute.cc gru_compute.cu DEPS device_context activation_functions math_function)
C
chengduoZH 已提交
21
    nv_library(cos_sim_functor SRCS cos_sim_functor.cc cos_sim_functor.cu DEPS device_context)
Q
qijun 已提交
22
else()
Y
Yancey1989 已提交
23
    cc_library(math_function SRCS math_function.cc im2col.cc DEPS cblas device_context framework_proto)
24
    cc_library(selected_rows_functor SRCS selected_rows_functor.cc DEPS selected_rows math_function)
25 26
    cc_library(softmax SRCS softmax.cc DEPS device_context)
    cc_library(cross_entropy SRCS cross_entropy.cc DEPS device_context)
C
chengduoZH 已提交
27
    cc_library(pooling SRCS pooling.cc DEPS device_context)
28
    cc_library(sequence_pooling SRCS sequence_pooling.cc DEPS device_context math_function)
29
    cc_library(vol2col SRCS vol2col.cc DEPS device_context tensor)
D
dangqingqing 已提交
30
    cc_library(context_project SRCS context_project.cc DEPS device_context math_function)
X
Xi Chen 已提交
31
    cc_library(sequence2batch SRCS sequence2batch.cc DEPS device_context tensor math_function)
Y
Yiqun Liu 已提交
32
    cc_library(sequence_padding SRCS sequence_padding.cc DEPS lod_tensor device_context)
W
wanghaoshuang 已提交
33
    cc_library(sequence_scale SRCS sequence_scale.cc DEPS lod_tensor device_context)
34
    cc_library(lstm_compute SRCS lstm_compute.cc DEPS device_context activation_functions)
W
wanghaox 已提交
35
    cc_library(maxouting SRCS maxouting.cc DEPS device_context)
S
sweetsky0901 已提交
36
    cc_library(unpooling SRCS unpooling.cc DEPS device_context)
S
sweetsky0901 已提交
37
    cc_library(gru_compute SRCS gru_compute.cc DEPS device_context activation_functions math_function)
C
chengduoZH 已提交
38
    cc_library(cos_sim_functor SRCS cos_sim_functor.cc DEPS device_context)
Q
qijun 已提交
39
endif()
Q
qijun 已提交
40

41 42
cc_test(math_function_test SRCS math_function_test.cc DEPS math_function tensor)
cc_test(selected_rows_functor_test SRCS selected_rows_functor_test.cc DEPS selected_rows_functor)
H
hedaoyuan 已提交
43
cc_test(im2col_test SRCS im2col_test.cc DEPS math_function tensor)
C
chengduoZH 已提交
44
cc_test(vol2col_test SRCS vol2col_test.cc DEPS vol2col tensor)
Y
Yiqun Liu 已提交
45
cc_test(sequence_padding_test SRCS sequence_padding_test.cc DEPS sequence_padding)