CMakeLists.txt 1.3 KB
Newer Older
1 2
# New custom OP can support Windows/Linux/Mac now
if(WITH_GPU OR APPLE)
3 4
    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)
5
    py_test(test_custom_relu_model SRCS test_custom_relu_model.py)
6 7 8 9

    # 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)
10
    set_tests_properties(test_custom_relu_model PROPERTIES TIMEOUT 180)
11
endif()
12

13 14 15
py_test(test_custom_raw_op_kernel_op SRCS test_custom_raw_op_kernel_op.py)
set_tests_properties(test_custom_raw_op_kernel_op PROPERTIES TIMEOUT 180)

16
# CPU custom op tests: only compile .cc file
17 18
py_test(test_dispatch_jit SRCS test_dispatch_jit.py)
py_test(test_multi_out_jit SRCS test_multi_out_jit.py)
19
py_test(test_custom_attrs_jit SRCS test_custom_attrs_jit.py)
20
py_test(test_custom_concat SRCS test_custom_concat.py)
21
py_test(test_custom_conj SRCS test_custom_conj.py)
22
py_test(test_custom_linear SRCS test_custom_linear.py)
23
py_test(test_custom_simple_slice SRCS test_custom_simple_slice.py)
24

25
# other tests
26
py_test(test_sysconfig SRCS test_sysconfig.py)
27
py_test(test_check_abi SRCS test_check_abi.py)