CMakeLists.txt 1.1 KB
Newer Older
Z
zhangjinchao01 已提交
1 2 3 4
# unittest for common package

add_simple_unittest(test_ExecViaCpu)
add_simple_unittest(test_SIMDFunctions)
H
hedaoyuan 已提交
5
add_simple_unittest(test_TrainingAlgorithm)
6
add_simple_unittest(test_SparseMatrix)
Y
Yu Yang 已提交
7
add_simple_unittest(test_RowBuffer)
Z
zhangjinchao01 已提交
8 9 10 11 12 13 14 15 16 17

# TODO(yuyang18): Refactor TestUtil.cpp. Remove this cross module reference.
add_unittest(test_matrixCompare
    test_matrixCompare.cpp
    ../../gserver/tests/TestUtil.cpp)

add_simple_unittest(test_sparseMatrixCompare)
add_simple_unittest(test_perturbation)
add_simple_unittest(test_CpuGpuVector)
add_simple_unittest(test_Allocator)
18

H
hedaoyuan 已提交
19 20
if(WITH_GPU)
    if(COMPILER_SUPPORT_CXX11)
H
hedaoyuan 已提交
21 22
    	CUDA_ADD_EXECUTABLE(test_Tensor test_Tensor.cu)
		link_paddle_test(test_Tensor)
H
hedaoyuan 已提交
23 24
        CUDA_ADD_EXECUTABLE(test_lazyAssign test_lazyAssign.cu)
        link_paddle_test(test_lazyAssign)
H
hedaoyuan 已提交
25 26 27 28
    endif()
else()
    compile_cu_as_cpp(test_Tensor.cu)
    add_unittest(test_Tensor test_Tensor.cu)
H
hedaoyuan 已提交
29 30
    compile_cu_as_cpp(test_lazyAssign.cu)
    add_unittest(test_lazyAssign test_lazyAssign.cu)
H
hedaoyuan 已提交
31 32
endif(WITH_GPU)

33
add_simple_unittest(test_FPException)
34
add_simple_unittest(test_GpuProfiler)
35 36
add_simple_unittest(test_BaseMatrix)
add_simple_unittest(test_Matrix)