Skip to content

Commit

Permalink
add custom test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiu committed Jul 18, 2022
1 parent c4f9abd commit a52d4f5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions paddle/phi/backends/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,14 @@ target_link_libraries(phi_backends ${BACKENDS_DEPS})
get_property(phi_modules GLOBAL PROPERTY PHI_MODULES)
set(phi_modules ${phi_modules} phi_backends)
set_property(GLOBAL PROPERTY PHI_MODULES "${phi_modules}")

if(WITH_CUSTOM_DEVICE)
cc_test(
custom_device_test
SRCS custom/custom_device_test.cc
DEPS phi_backends phi_device_context)
cc_test(
capi_test
SRCS custom/capi_test.cc
DEPS phi_capi)
endif()

0 comments on commit a52d4f5

Please sign in to comment.