CMakeLists.txt 1.1 KB
Newer Older
1
# New custom OP can support Windows/Linux now
2
if(WITH_GPU)
3
    # GPU custom op tests: compile both .cc and .cu file
4 5
    py_test(test_custom_relu_op_setup SRCS test_custom_relu_op_setup.py)
    py_test(test_custom_relu_op_jit SRCS test_custom_relu_op_jit.py)
6
    py_test(test_custom_relu_model SRCS test_custom_relu_model.py)
7 8 9 10

    # Compiling shared library will cost some time, but running process is very fast.
    set_tests_properties(test_custom_relu_op_setup PROPERTIES TIMEOUT 250)
    set_tests_properties(test_custom_relu_op_jit PROPERTIES TIMEOUT 180)
11
    set_tests_properties(test_custom_relu_model PROPERTIES TIMEOUT 180)
12
endif()
13

14
# CPU custom op tests: only compile .cc file
15 16
py_test(test_dispatch_jit SRCS test_dispatch_jit.py)
py_test(test_multi_out_jit SRCS test_multi_out_jit.py)
17
py_test(test_custom_attrs_jit SRCS test_custom_attrs_jit.py)
18
py_test(test_custom_concat SRCS test_custom_concat.py)
19 20
py_test(test_custom_conj SRCS test_custom_conj.py)

21
# other tests
22
py_test(test_sysconfig SRCS test_sysconfig.py)
23
py_test(test_check_abi SRCS test_check_abi.py)
24
cc_test(test_check_error SRCS test_check_error.cc DEPS gtest)