Using CuFFT and FFTW 2D&3D

Using CuFFT and FFTW 2D&3D

Hi everybody, I was having some problems with my code recently,so I decided to create this short post about using Multidimensional FFTs. My application was using both CuFFT and FFTW 2D and 3D: cufftPlan2d(plan,Nx,Ny,type); cufftPlan3d(plan,Nx,Ny,Nz,type);...
Using the modulo (%) operator in CUDA 65536

Using the modulo (%) operator in CUDA 65536

Originally, I wanted to create this post about half a year earlier, but :D … Well never mind, the problem was: I was implementing an algorithm in CUDA and I was using the modulo (%) operator in each kernel with different parameters. I personally think it was...