From 0f4b21864018472b8afd5deb16f93b4964c8d996 Mon Sep 17 00:00:00 2001 From: LielinJiang <50691816+LielinJiang@users.noreply.github.com> Date: Fri, 25 Dec 2020 19:19:39 +0800 Subject: [PATCH] Enable bilateral_slice unittest on windows platform (#29896) * enable bilateral_slice unittest on windows platform * reduce max threads --- paddle/fluid/operators/bilateral_slice_op.cu | 12 ++++++------ paddle/fluid/platform/gpu_launch_config.h | 6 ++++-- tools/windows/run_unittests.sh | 1 - 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/paddle/fluid/operators/bilateral_slice_op.cu b/paddle/fluid/operators/bilateral_slice_op.cu index e56a4be53d1..3c64ed1acc8 100644 --- a/paddle/fluid/operators/bilateral_slice_op.cu +++ b/paddle/fluid/operators/bilateral_slice_op.cu @@ -472,8 +472,8 @@ class BilateralSliceGradOpCUDAKernel : public framework::OpKernel { grid_sizes.gw = gw; grid_sizes.input_chans = input_chans; - platform::GpuLaunchConfig config = - platform::GetGpuLaunchConfig1D(ctx.cuda_device_context(), grid_count); + platform::GpuLaunchConfig config = platform::GetGpuLaunchConfig1D( + ctx.cuda_device_context(), grid_count, 512); BilateralSliceCudaGridGradKernel< T><< { grid_grad_data, output_grad_data, guide_data, input_data, grid_sizes, has_offset, grid_count, output_chans); - config = - platform::GetGpuLaunchConfig1D(ctx.cuda_device_context(), guide_count); + config = platform::GetGpuLaunchConfig1D(ctx.cuda_device_context(), + guide_count, 512); BilateralSliceCudaGuideGradKernel< T><< { guide_grad_data, output_grad_data, grid_data, guide_data, input_data, grid_sizes, has_offset, guide_count, output_chans); - config = - platform::GetGpuLaunchConfig1D(ctx.cuda_device_context(), input_count); + config = platform::GetGpuLaunchConfig1D(ctx.cuda_device_context(), + input_count, 512); BilateralSliceCudaInputGradKernel< T><<