[Python-talk] SWIG tips? Howto?
bruce.labitt at autoliv.com
bruce.labitt at autoliv.com
Tue Aug 18 15:07:00 EDT 2009
Made some progress with my optimizer. Haven't gotten to optimization yet,
but I have built a function using generators that calculates power. It
runs a little slow for my liking, it takes about 10 minutes to determine
the power. This is primarily due to the fft routine. I have to compute a
~5M point double precision complex FFT 40 times.
(This is very cool that one can make a five line program using generators
that does all this work.)
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?
I already have FFTW and SWIG. Is there a decent SWIG reference that
someone knows of? I am reading the SWIG manual now. I've been to
swig.org.
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
Comments?
Thanks
Bruce
******************************
Neither the footer nor anything else in this E-mail is intended to or constitutes an <br>electronic signature and/or legally binding agreement in the absence of an <br>express statement or Autoliv policy and/or procedure to the contrary.<br>This E-mail and any attachments hereto are Autoliv property and may contain legally <br>privileged, confidential and/or proprietary information.<br>The recipient of this E-mail is prohibited from distributing, copying, forwarding or in any way <br>disseminating any material contained within this E-mail without prior written <br>permission from the author. If you receive this E-mail in error, please <br>immediately notify the author and delete this E-mail. Autoliv disclaims all <br>responsibility and liability for the consequences of any person who fails to <br>abide by the terms herein. <br>
******************************
More information about the Python-talk
mailing list