|
|
|
@ -1,11 +1,11 @@
|
|
|
|
|
file(GLOB h_files . *_op.h)
|
|
|
|
|
file(GLOB cpp_files . *_op.cpp)
|
|
|
|
|
file(GLOB h_files . *Op.h)
|
|
|
|
|
file(GLOB cpp_files . *Op.cpp)
|
|
|
|
|
|
|
|
|
|
list(APPEND h_files Function.h)
|
|
|
|
|
list(APPEND cpp_files Function.cpp)
|
|
|
|
|
|
|
|
|
|
if(WITH_GPU)
|
|
|
|
|
file(GLOB cu_files . *_op_gpu.cu)
|
|
|
|
|
file(GLOB cu_files . *OpGpu.cu)
|
|
|
|
|
cuda_compile(cu_objs ${cu_files})
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
@ -15,9 +15,9 @@ add_library(paddle_test_main STATIC TestMain.cpp)
|
|
|
|
|
|
|
|
|
|
if(WITH_GPU)
|
|
|
|
|
# TODO:
|
|
|
|
|
# file(GLOB test_files . *_op_test.cpp)
|
|
|
|
|
# file(GLOB test_files . *OpTest.cpp)
|
|
|
|
|
# add_executable(${test_bin} EXCLUDE_FROM_ALL ${test_files})
|
|
|
|
|
add_simple_unittest(cross_map_normal_op_test)
|
|
|
|
|
add_simple_unittest(CrossMapNormalOpTest)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
add_style_check_target(paddle_function ${h_files})
|
|
|
|
|