提交 5545d64d 编写于 作者: T Tao Luo

add warning when ON_INFER is OFF

test=develop
上级 8e3638f3
......@@ -307,4 +307,7 @@ endif()
if (ON_INFER)
message(STATUS "On inference mode, will take place some specific optimization.")
add_definitions(-DPADDLE_ON_INFERENCE)
else()
#TODO(luotao), combine this warning with `make inference_lib_dist` command.
message(WARNING "On inference mode, will take place some specific optimization. Only used in make inference_lib_dist.")
endif()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册