pass nfft_gpu_max as argument