-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installing fftwpp on python #2
Comments
Hi Francis
|
Hello. Yes, there are python wrappers for the shared-memory routines. The wrappers are in the wrappers directory. pexample.py has examples of how to call FFTW++ from python. Best, ~Malcolm |
Hello John and Malcolm, Thanks for pointing me in the right folder. Unfortunately, I need to make stuff before I can run the python example. I haven't been able to find any instructions on the github repo. Could you maybe help me to get started? Francis |
Hi, Francis. Sorry about the lack of documentation; it's on the to-do list! For compiling, the first thing that you need to do is have FFTW compiled with --with-pic. Then, compile _fftwpp.so in the wrappers directory of fftw++; normally this is just "make _fftwpp.so". If you install FFTW in a non-standard location, specify this with FFTW_INCLUDE_PATH and FFTW_LIB_PATH, which are referenced in wrappers/Makefile. You can then use the python wrappers by adding the wrappers directory to your PYTHONPATH. I've tested the wrappers on Linux with gcc and the Intel compilers, but I can't vouch for Windows or MacOS yet. ~Malcolm |
Thanks for the quick reply. I tried it on my ubuntu machine and it compiled easily and ran fast. Ah, if only more of my life was linux based. Unfortunately, my Mac was not so cooperative. A questions.
python pexample.py Sorry for the bother but thanks for the help. |
Try linking with -lgomp On Wed, Nov 18, 2015 at 7:51 PM, francispoulin notifications@github.com
|
Hello John and/or Malcolm,
It's been a while. I have heard very good things about fftwpp recently and am very curious to try it out. I thought there was a wrapper for python. If yes do you have any advice on how one might set this up? If no maybe it's too much work.
Thanks for putting this together, it looks really great!
Francis
The text was updated successfully, but these errors were encountered: