- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We have an application that uses the IPP FFT functions. There are several calls to a function using the FFT that we want to thread. We use OpenMP at the application level and link to the single-threaded version of the IPP libraries. We are using Visual Studio C++ 2008. A skeleton of the code looks like this:
#pragma omp parallel for for (int i = 0; i < numLoops; i++) { doSomething(); // this function calls FFT }
On a four-core HT i7 processor we see a speedup over a non-threaded version by a factor of about 2.5. When we do the same test using FFTW instead of IPP, we see a speedup of 4. I.e., a linear speedup proportional tothe number of real (non-hyperthreaded) cores.
My question is, if we see a linear speedup with FFTW, wouldn't we expect to see the same with IPP?
Bruce
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
What is the value of OMP_NUM_THREADS, while running IPP FFT? What is the size of FFT?
Another reply on IPP forum with additional information on improving IPP FFT performance refer to here.
Thanks,
Naveen Gv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bruce,
I recalled some similar performance issue before: Before the FFT computation, it will use some memory allocation function (ippsFFTInitAlloc, or some others) to allocate memory for FFT computation. Memory allocation function is serial, your OpenMP code cannot be paralleled at this part. To resolve the problem, allocate the memory first before the for loop.
Thanks,
Chao
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page