inference_shared_library support profile (#16275)

test=develop
padding_in_crf
Tao Luo 6 years ago committed by GitHub
parent 17d62ab220
commit 741ce8bb1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,6 +4,9 @@ option(WITH_MKL "Compile demo with MKL/OpenBlas support, default use MKL.
option(WITH_GPU "Compile demo with GPU/CPU, default use CPU." OFF)
option(WITH_STATIC_LIB "Compile demo with static/shared library, default use static." ON)
option(USE_TENSORRT "Compile demo with TensorRT." OFF)
if(NOT WITH_STATIC_LIB)
add_definitions("-DPADDLE_WITH_SHARED_LIB")
endif()
macro(safe_set_static_flag)
foreach(flag_var

@ -30,6 +30,9 @@ DEFINE_string(
"path of data; each line is a record, format is "
"'<space splitted floats as data>\t<space splitted ints as shape'");
DEFINE_bool(use_gpu, false, "Whether use gpu.");
#ifdef PADDLE_WITH_SHARED_LIB
DEFINE_bool(profile, false, "Whether use profile.");
#endif
namespace paddle {
namespace demo {

@ -1,7 +1,8 @@
{
global:
*paddle*;
*Pass*;
*Pass*;
*profile*;
local:
*;
};

Loading…
Cancel
Save