“b9b75377a2db78651023707ef9b6a342c661eaf4”上不存在“python/paddle/v2/fluid/tests/unittests/test_accuracy_op.py”
提交 e3fc4cff 编写于 作者: Z zlsh80826

add NVINFER_PLUGIN option

上级 8c366149
...@@ -107,6 +107,7 @@ option(WITH_LITE "Compile Paddle Fluid with Lite Engine" OFF) ...@@ -107,6 +107,7 @@ option(WITH_LITE "Compile Paddle Fluid with Lite Engine" OFF)
option(WITH_NCCL "Compile PaddlePaddle with NCCL support" ON) option(WITH_NCCL "Compile PaddlePaddle with NCCL support" ON)
option(WITH_CRYPTO "Compile PaddlePaddle with crypto support" ON) option(WITH_CRYPTO "Compile PaddlePaddle with crypto support" ON)
option(WITH_ARM "Compile PaddlePaddle with arm support" OFF) option(WITH_ARM "Compile PaddlePaddle with arm support" OFF)
option(WITH_NVINFER_PLUGIN "Use plugins of nvinfer_plugin" OFF)
# PY_VERSION # PY_VERSION
if(NOT PY_VERSION) if(NOT PY_VERSION)
...@@ -234,6 +235,9 @@ if(ON_INFER) ...@@ -234,6 +235,9 @@ if(ON_INFER)
message(STATUS "On inference mode, will take place some specific optimization.") message(STATUS "On inference mode, will take place some specific optimization.")
include(inference_lib) include(inference_lib)
add_definitions(-DPADDLE_ON_INFERENCE) add_definitions(-DPADDLE_ON_INFERENCE)
if (WITH_NVINFER_PLUGIN)
add_definitions(-DUSE_NVINFER_PLUGIN)
endif()
else() else()
#TODO(luotao), combine this warning with `make inference_lib_dist` command. #TODO(luotao), combine this warning with `make inference_lib_dist` command.
message(WARNING "On inference mode, will take place some specific optimization. Turn on the ON_INFER flag when building inference_lib only.") message(WARNING "On inference mode, will take place some specific optimization. Turn on the ON_INFER flag when building inference_lib only.")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册