Questions tagged [cufft]

cuFFT is a FFT library for CUDA enabled GPUs. Capabilities are similar to the FFTW library.

cuFFT is a FFT library for CUDA enabled GPUs. cuFFT provides functions to do various kinds of forward and reverse Fast Fourier Transforms including multidimensional transforms and batched transforms.

146 questions
1
vote
1 answer

CUFFT | cannot figure out a simple example

I've been struggling the whole day, trying to make a basic CUFFT example work properly. However i run into a little problem which I cannot identify. Basically I have a linear 2D array vx with x and y coordinates. Then I just calculate a forward then…
François Laenen
  • 171
  • 4
  • 14
0
votes
0 answers

Batching multiple 2D FFT's from within a 4D array using planMany() from FFTW/cuFFT

I have a 4D array of dimensions (N, 128, 128, 4) and I want to perform a 2D FFT for the two middle dimensions. My question: is it possible to do this with the xxxPlanMany() function from FFTW/cuFFT/hipFFT as a single call? As a simpler example, if I…
Torrance
  • 450
  • 4
  • 11
0
votes
1 answer

CMake CUDA: static link with cublas

I want to compile CUDALibrarySamples. cuFFT uses cmake and I want to compile and link 1d_c2c application with the static version of cufft lib (-lcufft_static). Using Makefiles is trivial I have added -lcufft_static in nvcc -x cu $(FLAGS) $(INC)…
MANOS
  • 21
  • 8
0
votes
0 answers

How to set cuFFT timeout?

I am looking for a way to interrupt cuda FFT computation if it runs for too long. How can it be accomplished? I was looking for some timeout setting in the API, but I found no such option. When googling, most hits talk about an unwanted timeout from…
CygnusX1
  • 20,968
  • 5
  • 65
  • 109
0
votes
0 answers

How do I use complex thrust::device_vector in cuFFT functions

I have a working code (not shown) that performs a series of complex->complex fast fourier transforms using the cufft library. I have been attempting to simplify this code by using the thrust library and its thrust::complex type. In order to keep the…
codephys
  • 1
  • 1
0
votes
0 answers

combine multiple FFT operation on GPU within python

I am using pytorch for calculating the 3d convolution using the FFT. The current code does an FFT first, then a pointwise multiplication in Fourier space and finally an inverse FFT. The code works but seems to be very slow compared to an optimized…
0
votes
0 answers

Incorrect results when using cufftCallbackLoadR for R2C transformation using cupy

Since Callback feature isn't documented beyond [this sample] [(https://docs.cupy.dev/en/latest/user_guide/fft.html#fft-callbacks), I might just be holding it wrong. I tried to modify that example to do a real-to-complex transform as attached…
0
votes
1 answer

How to use acc_set_cuda_stream(streamId, stream)?

I created a CUDA stream in this way: integer(kind=cuda_stream_kind) :: stream1 istat = cudaStreamCreate(stream1) to use it for the plan of a cufft: err_dir = err_dir + cufftPlan2D(plan_dir1,NY,NY,CUFFT_D2Z) err_dir = err_dir +…
Steve
  • 89
  • 1
  • 6
0
votes
2 answers

How do I include cufft.h file in a fortran code?

I have a Fortran code which has been made to work on CPUs, but I need to accelerate it using GPUs and I chose to do that with OpenACC. This code uses FFTW libraries when compiled with gfortran. However, as you may know, these libraries cannot be…
riky_cv
  • 11
  • 2
0
votes
1 answer

CUDA Graph Problem: Results not computed for the first iteration

I am trying to utilize CUDA Graphs for the computation of Fast Fourier Transform (FFT) using CUDA's cuFFT APIs. I modified the sample FFT code present on Github into the following FFT code using CUDA Graphs: #include #include…
skm
  • 5,015
  • 8
  • 43
  • 104
0
votes
2 answers

How to interpret cuFFT R2C result

I'm in the process of accelerating some data analysis code with GPU and am currently doing some profiling and comparisons between the numpy.fft library and cuFFT (using the skcuda.fft wrapper). I'm certain I'm just missing something obvious about…
defladamouse
  • 567
  • 2
  • 13
0
votes
0 answers

Zero padding on the fly with cuFFT

I have a float array and want to FFT from this with an amount of data and padding by zero padding to 2^N. I also want to overlap the data by a selectable factor. So far I have a cuda kernel with which I create another array in which I store the…
fex95
  • 9
  • 3
0
votes
1 answer

Zero padding in the Middle of the Signal before convolution with FFT?

I came across an example of a simple convolution of two signals using cuFFT. https://github.com/NVIDIA/cuda-samples/blob/master/Samples/simpleCUFFT/simpleCUFFT.cu It performs zero-padding of both signals so that their sizes are matched together. But…
0
votes
1 answer

How to calculate a two-dimensional FFT of a large matrix with CUDA?

Now I have a large 16K*16K matrix,and the global memory is not enough.How to calculate the two-dimensional FFT of the matrix?
0
votes
1 answer

cuda fortran cufftPlanMany

I am having troubles using cufftPlanMany. After creating the plans and taking the forward and inverse FFTs, I could not get the original data back. Please, find attached a minimum version of the code. program test_cufft use cudafor use cufft …