CMakeLists.txt 891 字节
Newer Older
Q
qijun 已提交
1
if(WITH_GPU)
C
chengduoZH 已提交
2
    nv_library(math_function SRCS math_function.cc math_function.cu im2col.cc im2col.cu vol2col.cc vol2col.cu pooling.cc pooling.cu DEPS cblas device_context operator)
3
    nv_test(math_function_test SRCS math_function_test.cc DEPS math_function tensor)
4
    nv_library(softmax SRCS softmax.cc softmax.cu DEPS operator)
5
    nv_library(cross_entropy SRCS cross_entropy.cc cross_entropy.cu DEPS operator)
Q
qijun 已提交
6
else()
C
chengduoZH 已提交
7
    cc_library(math_function SRCS math_function.cc im2col.cc vol2col.cc pooling.cc DEPS cblas device_context operator)
8
    cc_test(math_function_test SRCS math_function_test.cc DEPS math_function tensor)
9 10
    cc_library(softmax SRCS softmax.cc DEPS operator)
    cc_library(cross_entropy SRCS cross_entropy.cc DEPS operator)
C
chengduoZH 已提交
11

Q
qijun 已提交
12
endif()
Q
qijun 已提交
13

H
hedaoyuan 已提交
14
cc_test(im2col_test SRCS im2col_test.cc DEPS math_function tensor)
C
chengduoZH 已提交
15
cc_test(vol2col_test SRCS vol2col_test.cc DEPS math_function tensor)