FFTW: Difference between revisions
From charlesreid1
(Created page with "=Installation= ==Prerequisites== ==FFTW 3.2.2== ===Mac Snow Leopard (OS X 10.6)=== <source lang="bash"> #!/bin/sh ./configure \ --prefix=${HOME}/pkg/fftw/3.2.2 \ --e...") |
|||
| (4 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
==Prerequisites== | ==Prerequisites== | ||
If you're installing FFTW v.2, you have the option of using MPI. I use [[OpenMPI]] for development on my laptop (alternatively, you can use [[LAM MPI]], but it's no longer being developed). | |||
==FFTW 3.2.2== | ==FFTW 3.2.2== | ||
| Line 21: | Line 23: | ||
==FFTW 2.1.5== | ==FFTW 2.1.5== | ||
This configure script should work for Mac OS X 10.5 or 10.6 (Leopard or Snow Leopard). | |||
<source lang="bash"> | <source lang="bash"> | ||
| Line 60: | Line 64: | ||
LDFLAGS="-L${HOME}/pkg/openmpi/1.4.3/lib/openmpi" | LDFLAGS="-L${HOME}/pkg/openmpi/1.4.3/lib/openmpi" | ||
</source> | </source> | ||
{{Programs}} | |||
{{Math Programs}} | |||
Latest revision as of 12:21, 20 July 2011
Installation
Prerequisites
If you're installing FFTW v.2, you have the option of using MPI. I use OpenMPI for development on my laptop (alternatively, you can use LAM MPI, but it's no longer being developed).
FFTW 3.2.2
Mac Snow Leopard (OS X 10.6)
#!/bin/sh
./configure \
--prefix=${HOME}/pkg/fftw/3.2.2 \
--enable-threads \
CC="gcc -arch i386 -arch x86_64" \
CXX="g++ -arch i386 -arch x86_64" \
CPP="gcc -E" \
CXXCPP="g++ -E" \
F77="gfortran"
FFTW 2.1.5
This configure script should work for Mac OS X 10.5 or 10.6 (Leopard or Snow Leopard).
#!/bin/sh
./configure \
--prefix=${HOME}/pkg/fftw/2.1.5 \
--enable-threads \
--enable-mpi \
--with-mpi=${HOME}/pkg/openmpi/1.4.3 \
\
CC="/usr/bin/gcc" \
CXX="/usr/bin/g++" \
F77="/usr/local/bin/gfortran" \
\
CFLAGS="-arch i386 -arch x86_64" \
CXXFLAGS="-arch i386 -arch x86_64" \
FFLAGS="-arch i386 -arch x86_64" \
\
CPP="/usr/bin/gcc -E" \
CXXCPP="/usr/bin/g++ -E" \
Errors
I saw the following error when I was attempting to use MPI compiler wrappers (mpicc, mpic++, etc.) that were part of my own OpenMPI build:
checking for mpicc... mpicc checking for MPI_Init... no checking for MPI_Init in -lmpi... no checking for MPI_Init in -lmpich... no configure: error: couldn't find mpi library for --enable-mpi
I fixed this by adding a library flag to my configure script:
LDFLAGS="-L${HOME}/pkg/openmpi/1.4.3/lib/openmpi"
| Scientific Computing Topics in scientific computing.
Numerical Software: Lapack · Sundials · Matlab · Octave · FFTW Petsc · Example Petsc Makefile · Trilinos · Hypre · Ginac · Gnuplot
Python: Numpy · Scipy · Pandas · Matplotlib · Python Sundials · Py4Sci Scikit-learn: Sklearn · Skimage
|