Why CUFFT_R2C slows down

Hello, everyone,
i CUFFT_R2C a image(1280*1024), it just spend 1ms, but when i CUFFT_R2C a paded PSF the same size as my image, it spend 180ms, the difference is i use nppiCopyConstBorder_32f_C1R to pad my PSF, and the result as the input of CUFFT_R2C directly, although the final result is correct, but it spend too long time, nppiCopyConstBorder_32f_C1R spend 18ms, it also spend too long time. any help is expected, please!

I’ve measured it, it is the code line ‘cufftPlan2d(&plan, hight, width, CUFFT_R2C);’ spend 180ms,but why

i have known the reason,thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.