CMakeLists.txt 374 字节
Newer Older
Q
qijun 已提交
1 2
if(WITH_MKLML)
    set(BLAS_LIB mklml)
Q
qijun 已提交
3
else()
Q
qijun 已提交
4 5
    set(BLAS_LIB cblas)
endif()
Q
qijun 已提交
6

Q
qijun 已提交
7 8 9
if(WITH_GPU)
    nv_library(math_function SRCS math_function.cc math_function.cu DEPS ${BLAS_LIB} device_context)
else()
Q
qijun 已提交
10
    cc_library(math_function SRCS math_function.cc DEPS ${BLAS_LIB} device_context)
Q
qijun 已提交
11
endif()
Q
qijun 已提交
12

Q
qijun 已提交
13
nv_test(math_function_test SRCS math_function_test.cc DEPS math_function tensor)