File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ cc_library(paddle_inference_tensorrt_subgraph_engine
61
61
inference_api_test (test_paddle_inference_api_tensorrt_subgraph_engine ARGS test_word2vec )
62
62
endif ()
63
63
64
- if (WITH_ANAKIN AND WITH_TESTING ) # only needed in CI
64
+ if (WITH_ANAKIN ) # only needed in CI
65
65
# Due to Anakin do not have official library releases and the versions of protobuf and cuda do not match Paddle's,
66
66
# so anakin library will not be merged to our official inference library. To use anakin prediction API, one need to
67
67
# compile the libinference_anakin_api.a and compile with anakin.so.
@@ -71,10 +71,12 @@ if (WITH_ANAKIN AND WITH_TESTING) # only needed in CI
71
71
target_compile_options (inference_anakin_api_shared BEFORE PUBLIC ${ANAKIN_COMPILE_EXTRA_FLAGS} )
72
72
target_link_libraries (inference_anakin_api anakin anakin_saber_common )
73
73
target_link_libraries (inference_anakin_api_shared anakin anakin_saber_common )
74
- cc_test (inference_anakin_test SRCS paddle_inference_api_anakin_engine_tester.cc
74
+ if (WITH_TESTING )
75
+ cc_test (inference_anakin_test SRCS paddle_inference_api_anakin_engine_tester.cc
75
76
ARGS --model=${ANAKIN_INSTALL_DIR}/mobilenet_v2.anakin.bin
76
77
DEPS inference_anakin_api )
77
- target_compile_options (inference_anakin_test BEFORE PUBLIC ${ANAKIN_COMPILE_EXTRA_FLAGS} )
78
+ target_compile_options (inference_anakin_test BEFORE PUBLIC ${ANAKIN_COMPILE_EXTRA_FLAGS} )
79
+ endif (WITH_TESTING )
78
80
endif ()
79
81
80
82
if (WITH_TESTING )
You can’t perform that action at this time.
0 commit comments