CMakeLists.txt 524 字节
Newer Older
1 2
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
3 4 5 6 7

if(NOT WITH_DISTRIBUTE)
    list(REMOVE_ITEM TEST_OPS test_recv_op)
endif(NOT WITH_DISTRIBUTE)

8
list(REMOVE_ITEM TEST_OPS test_warpctc_op)
9 10 11
foreach(src ${TEST_OPS})
    py_test(${src} SRCS ${src}.py)
endforeach()
12
py_test(test_warpctc_op SRCS test_warpctc_op.py ENVS FLAGS_warpctc_dir=${WARPCTC_LIB_DIR})
13 14

add_subdirectory(book)
T
typhoonzero 已提交
15
add_subdirectory(book_distribute)
16
add_subdirectory(book_memory_optimization)