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

Q
qijun 已提交
3
if(WITH_GPU)
C
chengduoZH 已提交
4
    nv_library(math_function SRCS math_function.cc math_function.cu im2col.cc im2col.cu DEPS cblas device_context operator)
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
    nv_library(softmax SRCS softmax.cc softmax.cu DEPS operator)
9
    nv_library(cross_entropy SRCS cross_entropy.cc cross_entropy.cu DEPS operator)
C
chengduoZH 已提交
10
    nv_library(pooling SRCS pooling.cc pooling.cu DEPS device_context)
C
chengduoZH 已提交
11
    nv_library(vol2col SRCS vol2col.cc vol2col.cu DEPS device_context)
12
    nv_library(sequence2batch SRCS sequence2batch.cc sequence2batch.cu DEPS device_context)
13
    nv_library(lstm_compute SRCS lstm_compute.cc lstm_compute.cu DEPS device_context activation_functions)
Q
qijun 已提交
14
else()
C
chengduoZH 已提交
15
    cc_library(math_function SRCS math_function.cc im2col.cc DEPS cblas device_context operator)
16
    cc_library(selected_rows_functor SRCS selected_rows_functor.cc DEPS selected_rows math_function)
17 18
    cc_library(softmax SRCS softmax.cc DEPS operator)
    cc_library(cross_entropy SRCS cross_entropy.cc DEPS operator)
C
chengduoZH 已提交
19
    cc_library(pooling SRCS pooling.cc DEPS device_context)
D
dangqingqing 已提交
20
    cc_library(vol2col SRCS vol2col.cc DEPS device_context)
21
    cc_library(sequence2batch SRCS sequence2batch.cc DEPS device_context)
22
    cc_library(lstm_compute SRCS lstm_compute.cc DEPS device_context activation_functions)
Q
qijun 已提交
23
endif()
Q
qijun 已提交
24

25 26
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 已提交
27
cc_test(im2col_test SRCS im2col_test.cc DEPS math_function tensor)
C
chengduoZH 已提交
28
cc_test(vol2col_test SRCS vol2col_test.cc DEPS vol2col tensor)