From 2bdf44641c126c2a9b42c2fa872fc017cc5c934e Mon Sep 17 00:00:00 2001 From: Yiqun Liu Date: Thu, 28 Feb 2019 15:24:52 +0800 Subject: [PATCH] Add the include of cudnn.h to enable the use of CUDNN_VERSION. (#15961) test=develop --- paddle/fluid/inference/api/paddle_pass_builder.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/inference/api/paddle_pass_builder.cc b/paddle/fluid/inference/api/paddle_pass_builder.cc index f9c13c2fa8..92c24647e8 100644 --- a/paddle/fluid/inference/api/paddle_pass_builder.cc +++ b/paddle/fluid/inference/api/paddle_pass_builder.cc @@ -13,7 +13,9 @@ // limitations under the License. #include "paddle/fluid/inference/api/paddle_pass_builder.h" - +#ifdef PADDLE_WITH_CUDA +#include +#endif #include namespace paddle { -- GitLab