From e0bedebe301379d12d70bfec76184cc80c999eb9 Mon Sep 17 00:00:00 2001 From: zhangting2020 <709968123@qq.com> Date: Tue, 22 Sep 2020 14:44:54 +0000 Subject: [PATCH] remove logs --- paddle/fluid/operators/conv_cudnn_helper.h | 35 ---------------------- 1 file changed, 35 deletions(-) diff --git a/paddle/fluid/operators/conv_cudnn_helper.h b/paddle/fluid/operators/conv_cudnn_helper.h index fd892094a2f..f9e69de09f4 100644 --- a/paddle/fluid/operators/conv_cudnn_helper.h +++ b/paddle/fluid/operators/conv_cudnn_helper.h @@ -467,7 +467,6 @@ struct SearchAlgorithm { algo_t algo; if (!exhaustive && !deterministic) { #if CUDNN_VERSION >= 7001 - /* using perf_t = cudnnConvolutionBwdFilterAlgoPerf_t; int perf_count; int best_algo_idx = 0; @@ -483,39 +482,7 @@ struct SearchAlgorithm { if (workspace_size > workspace_size_limit) { workspace_size = workspace_size_limit; } - - auto math_type_str = "-"; - if ((perf_results.get())[best_algo_idx].mathType == - CUDNN_TENSOR_OP_MATH) { - math_type_str = "+"; - } - VLOG(3) << " algo: " << (perf_results.get())[best_algo_idx].algo - << ", TC" << math_type_str - << ", time: " << (perf_results.get())[best_algo_idx].time << " ms" - << ", wksp = " << (perf_results.get())[best_algo_idx].memory - << ", status = " << (perf_results.get())[best_algo_idx].status; -*/ - auto max_bwd_filt_algos = MaxBackwardFilterAlgos(args.handle); - std::vector bwd_filt_results( - max_bwd_filt_algos); - int actual_bwd_filter_algos = 0; - PADDLE_ENFORCE_CUDA_SUCCESS( - platform::dynload::cudnnFindConvolutionBackwardFilterAlgorithm( - args.handle, args.idesc.desc(), args.odesc.desc(), - args.cdesc.desc(), args.wdesc.desc(), bwd_filt_results.size(), - &actual_bwd_filter_algos, bwd_filt_results.data())); - bwd_filt_results.resize(actual_bwd_filter_algos); - AlgoFinalSelect( - bwd_filt_results, "backprop-to-filter", -1, workspace_size_limit, - &algo, deterministic); - workspace_size = GetWorkspaceSize(args, algo); - if (workspace_size > workspace_size_limit) { - workspace_size = workspace_size_limit; - } - #else - VLOG(3) << "=======cudnnGetConvolutionBackwardFilterAlgorithm====="; PADDLE_ENFORCE_CUDA_SUCCESS( platform::dynload::cudnnGetConvolutionBackwardFilterAlgorithm( args.handle, args.idesc.desc(), args.odesc.desc(), @@ -524,10 +491,8 @@ struct SearchAlgorithm { workspace_size_limit, &algo)); #endif } else if (deterministic) { - VLOG(3) << "======choose deterministic algo======"; return CUDNN_CONVOLUTION_BWD_FILTER_ALGO_1; } else { - VLOG(3) << "========Get cache algo==========="; auto& dev_ctx = ctx.template device_context(); auto workspace_handle = dev_ctx.cudnn_workspace_handle(); -- GitLab