# Confused about cufftPlan

**URL:** <https://forums.developer.nvidia.com/t/confused-about-cufftplan/10628>\
**Category:** CUDA Programming and Performance\
**Created:** [July 5, 2009, 7:14am UTC](https://forums.developer.nvidia.com/t/confused-about-cufftplan/10628 "2009-07-05T07:14:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aimankhan](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aimankhan](https://forums.developer.nvidia.com/u/aimankhan)\
**Post date:** [July 5, 2009, 7:14am UTC](https://forums.developer.nvidia.com/t/confused-about-cufftplan/10628/1 "2009-07-05T07:14:45Z")

</div>

I am just trying out CUDA and am trying to use the FFT capabilities. I am confused about the cufftPlan1d function… what is the purpose of the batch variable?

If I have C code like this:

```auto
for(i=0; i <nffts; i++) {

pfacc(1, fft_length, data[i]) // 1D C2C FFT in C

}

```

What would an efficient implementation of this look like in CUDA? What would I set batch to?

Thanks!
