Compile fftw 3.1.2 and 2.1.5

Source: Internet
Author: User
Fftw 3.1.2 compilation is very simple. For the install file, refer

./Configure -- prefix =/home/Eric/fftw -- enable-shared -- enable-threads -- enable-sse2
Make
Make check
Make install

-- Enable-shared is recommended, because this switch is disabled by default, and some programs are linked in the-lfftw mode, so this switch must be added, if you want to specify the compiler and compilation options, as shown in the following code:

./Configure cc = xxx ......

In the new configure version, the compiler is specified in this way, and environment variables are no longer used.

So OK.

Many scientific software actually require fftw 2. x, instead of version 3. Compiling fftw 2 is also very simple. The current stable version is fftw 2.1.5.

./Configure -- help // check which options are available
./Configure -- prefix =/home/Eric/fftw -- enable-shared -- enable-threads -- enable-i386-hacks
Make
Make check
Make install

Here, configure has another -- enable-MPI. I don't think this is necessary, because many fftw-based programs are parallel, and the parallel performance of fftw is not necessarily good here, simply use -- enable-threads to allow fftw to calculate in parallel on a single machine, without much trouble. Open the MPI switch and modify the path of one pair of MPI header files and library files.

Modify the compiler and compile options, as in version 3.x, and define them directly in configure.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.