Sign in

username:

password:



Not a member?

Search compdsp



Search tips

comp.dsp by Keywords

Adaptive Filter | ADPCM | ADSP | ADSP-2181 | Aliasing | AMR | Anti-Aliasing | ARMA | Autocorrelation | AutoCovariance | Beamforming | Bessel | Blackfin | Butterworth | C6713 | CCS | Chebyshev | CIC Filter | Circular Convolution | Code Composer Studio | Comb Filter | Compression | Convolution | Cross Correlation | DCT | Decimation | Deconvolution | Demodulation | DM642 | DSP Boards | DSP/BIOS | DTMF | Echo Cancellation | Equalization | Equalizer | ETSI | EZLITE (Ez-kit Lite) | FFT | FFTW | FIR Filter | Fixed Point | FSK | G.711 | G.723 | G.729 | Gaussian Noise | Goertzel | GPIO | Hilbert Transform | IFFT | IIR Filter | Interpolation | Invariance | JTAG | Kalman | Laplace Transform | Levinson | LPC | McBSP | MIPS | Modulation | MPEG | Multirate | Notch Filter | Nyquist | OFDM | Oversampling | Pink Noise | Pitch | PLL | Polyphase | QAM | QDMA | Quantization | Quantizer | Radar | Random Noise | Reed Solomon | Remez | Resampling | RTDX | Sampling | Sharc | TI C6711 | Undersampling | Viterbi | Wavelets | White Noise | Wiener Filter | Windowing | XDS510PP | Z Transform


Discussion Groups

Free Online Books

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Comp.DSP | Multi-threaded FFTW


There are 4 messages in this thread.

You are currently looking at messages 0 to 4.


Multi-threaded FFTW - Cristiano - 2007-08-14 06:37:00

I'm using the FFTW library implemented as DLL under Win XP.
Now I'm writing (in C++) a multi-threaded application which call the FFTW
functions from two function in my code at the same time and, obviously, the
application crashes.

Is there any way to use the FFTW library in a multi-threaded application?

Thanks
Cristiano



______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Multi-threaded FFTW - Azazello - 2007-08-14 11:10:00



On Aug 14, 3:37 am, "Cristiano" <cristiano...@NSquipo.it> wrote:
> I'm using the FFTW library implemented as DLL under Win XP.
> Now I'm writing (in C++) a multi-threaded application which call the FFTW
> functions from two function in my code at the same time and, obviously, the
> application crashes.
>
> Is there any way to use the FFTW library in a multi-threaded application?
>
> Thanks
> Cristiano

I'm not sure if your problem is a result of creating race conditions
between your threads, or something inherent about the FFTW library.
It sounds like a threading issue though.

______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Multi-threaded FFTW - Hendrik van der Heijden - 2007-08-14 16:34:00

Cristiano schrieb:
> I'm using the FFTW library implemented as DLL under Win XP.
> Now I'm writing (in C++) a multi-threaded application which call the FFTW
> functions from two function in my code at the same time and, obviously, the
> application crashes.
> 
> Is there any way to use the FFTW library in a multi-threaded application?

Googleing for "fftw thread safety" yields:

You can use FFTW in multithreaded apps, but only the method "fftw_execute"
is thread safe. So all FFTW functions calls except fftw_execute have to
be serialized (not executed in parallel).


Hendrik vdH
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Multi-threaded FFTW - Cristiano - 2007-08-14 17:29:00

Hendrik van der Heijden wrote:
> Googleing for "fftw thread safety" yields:
>
> You can use FFTW in multithreaded apps, but only the method
> "fftw_execute" is thread safe. So all FFTW functions calls except
> fftw_execute have to be serialized (not executed in parallel).

You're right! Now my app works.

Thank you very much
Cristiano



______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.