HPC/Applications/fftw3
< HPC | Applications
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:
- path to include files
-I
, - 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" \ …