diff --git a/paddle/fluid/platform/gpu_launch_config.h b/paddle/fluid/platform/gpu_launch_config.h index d2d57995b728ec9cb6d586584a893ed9f5eeef7a..3953abe142d207ba8427ee1d55a2e4d17da11d37 100755 --- a/paddle/fluid/platform/gpu_launch_config.h +++ b/paddle/fluid/platform/gpu_launch_config.h @@ -53,10 +53,8 @@ inline GpuLaunchConfig GetGpuLaunchConfig1D( // Need get from device const int thread_per_block = std::min(1024, context.GetMaxThreadsPerBlock()); - // Suppose block count small than factor * sm, factor is a experiments value. - int factor = 4; const int block_count = - std::min(DivUp(physical_thread_count, thread_per_block), factor * sm); + std::min(DivUp(physical_thread_count, thread_per_block), sm); GpuLaunchConfig config; config.theory_thread_count.x = theory_thread_count;