From cd2d60b4c822db2bc0fba5eec8163b90888a9e6f Mon Sep 17 00:00:00 2001 From: peizhilin Date: Sat, 29 Dec 2018 17:18:26 +0800 Subject: [PATCH] fix build issue for density prior box op on windows test=develop --- paddle/fluid/operators/detection/density_prior_box_op.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/detection/density_prior_box_op.cu b/paddle/fluid/operators/detection/density_prior_box_op.cu index acd5993154e..6337a4837a6 100644 --- a/paddle/fluid/operators/detection/density_prior_box_op.cu +++ b/paddle/fluid/operators/detection/density_prior_box_op.cu @@ -148,7 +148,7 @@ class DensityPriorBoxOpCUDAKernel : public framework::OpKernel { // blockx is multiple of 32. int blockx = std::min( static_cast(((feature_width * num_priors + 31) >> 5) << 5), - 512L); + static_cast(512L)); int gridx = (feature_width * num_priors + blockx - 1) / blockx; dim3 threads(blockx, 1); dim3 grids(gridx, feature_height); -- GitLab