diff --git a/paddle/phi/kernels/gpu/c_softmax_with_multi_label_cross_entropy_grad_kernel.cu b/paddle/phi/kernels/gpu/c_softmax_with_multi_label_cross_entropy_grad_kernel.cu index 3776e7e1efca3..d8fef64e1fe77 100644 --- a/paddle/phi/kernels/gpu/c_softmax_with_multi_label_cross_entropy_grad_kernel.cu +++ b/paddle/phi/kernels/gpu/c_softmax_with_multi_label_cross_entropy_grad_kernel.cu @@ -27,11 +27,11 @@ namespace phi { static constexpr int kNumCUDAThreads = 512; -static constexpr int64_t kNumMaxinumNumBlocks = 4096; +static constexpr int64_t kNumMaximumNumBlocks = 4096; static inline int64_t NumBlocks(const int64_t N) { return std::min((N + kNumCUDAThreads - 1) / kNumCUDAThreads, - kNumMaxinumNumBlocks); + kNumMaximumNumBlocks); } template diff --git a/paddle/phi/kernels/gpu/c_softmax_with_multi_label_cross_entropy_kernel.cu b/paddle/phi/kernels/gpu/c_softmax_with_multi_label_cross_entropy_kernel.cu index 1b68d6f282567..22bef6d54fe0b 100644 --- a/paddle/phi/kernels/gpu/c_softmax_with_multi_label_cross_entropy_kernel.cu +++ b/paddle/phi/kernels/gpu/c_softmax_with_multi_label_cross_entropy_kernel.cu @@ -46,11 +46,11 @@ struct CSoftmaxWithMultiLabelCrossEntropyFunctor { }; static constexpr int kNumCUDAThreads = 512; -static constexpr int64_t kNumMaxinumNumBlocks = 4096; +static constexpr int64_t kNumMaximumNumBlocks = 4096; static inline int64_t NumBlocks(const int64_t N) { return std::min((N + kNumCUDAThreads - 1) / kNumCUDAThreads, - kNumMaxinumNumBlocks); + kNumMaximumNumBlocks); } template