From d1ae7b98eed7a7962650482c76d06fc78e13ce0f Mon Sep 17 00:00:00 2001 From: Wilber Date: Wed, 3 Feb 2021 19:29:26 +0800 Subject: [PATCH] disable memory leak pass in cudnn8 (#30838) --- paddle/fluid/inference/api/paddle_pass_builder.cc | 10 +++++++--- paddle/scripts/paddle_build.sh | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/paddle/fluid/inference/api/paddle_pass_builder.cc b/paddle/fluid/inference/api/paddle_pass_builder.cc index 24c3645f990..ed59f1dc7fc 100644 --- a/paddle/fluid/inference/api/paddle_pass_builder.cc +++ b/paddle/fluid/inference/api/paddle_pass_builder.cc @@ -126,11 +126,15 @@ GpuPassStrategy::GpuPassStrategy() : PassStrategy({}) { "fc_elementwise_layernorm_fuse_pass", // #if CUDNN_VERSION >= 7100 // To run conv_fusion, the version of cudnn must be // guaranteed at least v7 +// TODO(wilber): cudnn8 has memory leak problem in conv + eltwise + act, so we +// disable the pass temporarily. +#if CUDNN_VERSION < 8000 "conv_elementwise_add_act_fuse_pass", // "conv_elementwise_add2_act_fuse_pass", // - "conv_elementwise_add_fuse_pass", // -#endif // - "transpose_flatten_concat_fuse_pass", // +#endif + "conv_elementwise_add_fuse_pass", // +#endif // + "transpose_flatten_concat_fuse_pass", // // following pass should be located in the last, since it will // work on all fused ops. "runtime_context_cache_pass" diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 137488cfb91..4b320e5a5ca 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -240,7 +240,7 @@ function cmake_base() { -DWITH_GLOO=${gloo_flag} -DWITH_LITE=${WITH_LITE:-OFF} -DWITH_XPU=${WITH_XPU:-OFF} - -DLITE_GIT_TAG=develop + -DLITE_GIT_TAG=release/v2.8 ======================================== EOF # Disable UNITTEST_USE_VIRTUALENV in docker because @@ -272,7 +272,7 @@ EOF -DWITH_GRPC=${grpc_flag} \ -DWITH_PSCORE=${distibuted_flag} \ -DWITH_GLOO=${gloo_flag} \ - -DLITE_GIT_TAG=develop \ + -DLITE_GIT_TAG=release/v2.8 \ -DWITH_XPU=${WITH_XPU:-OFF} \ -DWITH_LITE=${WITH_LITE:-OFF};build_error=$? if [ "$build_error" != 0 ];then -- GitLab