未验证 提交 758dd7bb 编写于 作者: F feng_shuai 提交者: GitHub

add no tensorrt warning (#33874)

上级 375e5618
...@@ -43,8 +43,17 @@ void* GetDsoHandle(const std::string& dso_name) { ...@@ -43,8 +43,17 @@ void* GetDsoHandle(const std::string& dso_name) {
if (nullptr == dso_handle) { if (nullptr == dso_handle) {
auto error_msg = auto error_msg =
"You are using Paddle compiled with TensorRT, but TensorRT dynamic " "You are using Paddle compiled with TensorRT, but TensorRT dynamic "
"library is not found. Ignore this if TensorRT is not needed.\n"; "library is not found. Ignore this if TensorRT is not needed.\n"
std::cerr << error_msg; "The TensorRT that Paddle depends on is not configured correctly.\n"
" Suggestions:\n"
" 1. Check if the TensorRT is installed correctly and its version"
" is matched with paddlepaddle you installed.\n"
" 2. Configure environment variables as "
"follows:\n"
" - Linux: set LD_LIBRARY_PATH by `export LD_LIBRARY_PATH=...`\n"
" - Windows: set PATH by `set PATH=XXX;%PATH%`\n"
" - Mac: set DYLD_LIBRARY_PATH by `export DYLD_LIBRARY_PATH=...`\n";
LOG(WARNING) << error_msg;
} }
return dso_handle; return dso_handle;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册