From 1616c32acfeec71ba3900653f394f5b850d45649 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 f9c13c2fa84..92c24647e87 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