[Python-talk] SWIG tips? Howto?
Kent Johnson
kent37 at tds.net
Tue Aug 18 16:36:44 EDT 2009
On Tue, Aug 18, 2009 at 3:07 PM, <bruce.labitt at autoliv.com> wrote:
> I have used FFTW before (www.fftw.org) for my work. How hard would it be
> to use SWIG to wrap a few FFTW routines to hopefully speed up the FFTs?
Google is your friend...
http://developer.berlios.de/projects/pyfftw/
http://www.nabble.com/FFTW-python-bindings-again-td21676636.html
> I will try using FFTW (using SWIG) on my workstation. If it is fast
> enough, I'm done. If not, I can try my blade processor. For large FFTs
> it is 40x faster, for smaller ones, maybe 20x. The only issue there is I
> will have to connect and run remotely.
> Is there a way to do this? I only want the fft to run remotely. This is
> what I envision:
> 1. Python running on my workstation passes an array to the QS22,
> 2. QS22 processes array using FFTW, sends back answer,
> 3. Python continues loop to 1, until done
How do the two systems communicate? Maybe you can
- save a file containing the array in a common location
- start a process on QS22 to process the file and save results
- read results
or you could communicate through sockets...
Kent
More information about the Python-talk
mailing list