diff --git a/paddle/fluid/inference/api/paddle_pass_builder.cc b/paddle/fluid/inference/api/paddle_pass_builder.cc index 24c3645f99012161beb15964f04b5f25e44e3605..ed59f1dc7fc5f625383821281ec47406db3b72b0 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 137488cfb917469a3abb2985b7e4ba84dd0c27a2..4b320e5a5ca05e74ab9083d0bffaf49935063cba 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