CMakeLists.txt 601 字节
Newer Older
Q
qijun 已提交
1
if(WITH_GPU)
2 3
    nv_library(math_function SRCS math_function.cc math_function.cu im2col.cc
            im2col.cu pooling.cc pooling.cu DEPS cblas device_context)
Q
qijun 已提交
4
else()
5
    cc_library(math_function SRCS math_function.cc im2col.cc pooling.cc DEPS cblas device_context)
Q
qijun 已提交
6
endif()
Q
qijun 已提交
7

Q
qijun 已提交
8
nv_test(math_function_test SRCS math_function_test.cc DEPS math_function tensor)
H
hedaoyuan 已提交
9
cc_test(im2col_test SRCS im2col_test.cc DEPS math_function tensor)
10 11
cc_test(pool_test_maxPool2d_test SRCS pool_test_maxPool2d.cc DEPS math_function tensor)
cc_test(pool_test_maxPool3d_test SRCS pool_test_maxPool3d.cc DEPS math_function tensor)