HPC/Applications/fftw3

From CNM Wiki
< HPC‎ | Applications
Revision as of 16:04, December 19, 2013 by Stern (talk | contribs) (Created page with "== Linking FFTW3 == Load the module in your .bashrc or simply on the command line. Then, to link, you typically need to pass to make(1) or configure where to find include and...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Linking FFTW3

Load the module in your .bashrc or simply on the command line.

Then, to link, you typically need to pass to make(1) or configure where to find include and library files.

In the simplest case, simply pass on the command line 3 items:

  1. path to include files -I,
  2. path to library files -L,
  • the actual link request -l. (lowercase L)
icc … your obj files and flags … -I$FFTW3_HOME/include -L$FFTW3_HOME/lib -lfftw3

For example, for LAMMPS, the following is needed:

make … \
       FFT_PATH="-L$FFTW3_HOME" \
       FFT_LIB="-lfftw3" \
       …