# CUFFT CUFFT Library

**URL:** <https://forums.developer.nvidia.com/t/cufft-cufft-library/1567>\
**Category:** CUDA Programming and Performance\
**Created:** [October 3, 2007, 12:24pm UTC](https://forums.developer.nvidia.com/t/cufft-cufft-library/1567 "2007-10-03T12:24:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brijesh](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Brijesh](https://forums.developer.nvidia.com/u/Brijesh)\
**Post date:** [October 3, 2007, 12:24pm UTC](https://forums.developer.nvidia.com/t/cufft-cufft-library/1567/1 "2007-10-03T12:24:02Z")

</div>

I am writing one program which applies 13x13 filter on image in CPU. I want to optimize this code with using GPU. For that I have one way to do this, use CUFFT libraries. In this library there is some functions for fourier transform, like cufftExecR2C, cufftExecC2C and cufftExecC2R. But my image data and filter kernel is in real format.

So how can I apply real to real operation in FFT calculation using CUFFT library?

---

<div class="post-metadata">

**Author:** ![Brijesh](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Brijesh](https://forums.developer.nvidia.com/u/Brijesh)\
**Post date:** [October 4, 2007, 11:59am UTC](https://forums.developer.nvidia.com/t/cufft-cufft-library/1567/2 "2007-10-04T11:59:49Z")

</div>

> [@](#):
>
> I am writing one program which applies 13x13 filter on image in CPU. I want to optimize this code with using GPU. For that I have one way to do this, use CUFFT libraries. In this library there is some functions for fourier transform, like cufftExecR2C, cufftExecC2C and cufftExecC2R. But my image data and filter kernel is in real format.
> 
> So how can I apply real to real operation in FFT calculation using CUFFT library?
> 
> [snapback]260027[/snapback]

[External Media](http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/smile2.gif "Media hosted on another site. Click to open in a new tab.")

Now I have got the solution. If any one has this type of problem feel free to ask me.

[External Media](http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/thumbup.gif "Media hosted on another site. Click to open in a new tab.")

---

<div class="post-metadata">

**Author:** ![javimatrix](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@javimatrix](https://forums.developer.nvidia.com/u/javimatrix)\
**Post date:** [October 18, 2007, 10:18am UTC](https://forums.developer.nvidia.com/t/cufft-cufft-library/1567/3 "2007-10-18T10:18:39Z")

</div>

> [@](#):
>
> [External Media](http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/smile2.gif "Media hosted on another site. Click to open in a new tab.")
> 
> Now I have got the solution. If any one has this type of problem feel free to ask me.
> 
> [External Media](http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/thumbup.gif "Media hosted on another site. Click to open in a new tab.")
> 
> [snapback]260474[/snapback]

I’m new in CUDA and I have the same problem.

Do you use complex-to-real with imaginary part set to 0?

This is the only I can think, I’m a newbie in this. :(

I would like to know the solution that you found, please.

Thank you!! [External Media](http://hqnveipbwb20/public/style_emoticons/<#EMO_DIR#>/thumbup.gif "Media hosted on another site. Click to open in a new tab.")
