hpc:linking_libraries
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
hpc:linking_libraries [2017/05/25 10:42] – Matthieu Verstraete | hpc:linking_libraries [2020/08/09 10:27] (current) – [How to link libraries] Jean-Michel Beuken | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== How to link libraries ====== | ====== How to link libraries ====== | ||
+ | |||
+ | Numerous details given in: | ||
+ | {{ : | ||
The bottom line is you should first try to get a system administrator to compile ABINIT for you on their machine (they may already have done so!). They are most knowledgeable about optimization and library dependencies, | The bottom line is you should first try to get a system administrator to compile ABINIT for you on their machine (they may already have done so!). They are most knowledgeable about optimization and library dependencies, | ||
+ | |||
+ | Libraries are set up at configuration time using command line arguments or lines in the configuration file. As an example for FFTs: | ||
+ | < | ||
+ | ./configure --with-fft-flavor=fftw3 --with-fft-libs=" | ||
+ | </ | ||
+ | or in your .ac configuration file (note the dashes become underscores) | ||
+ | < | ||
+ | with_fft_flavor=fftw3 | ||
+ | with_fft_libs=" | ||
+ | with_fft_incs=" | ||
+ | </ | ||
+ | Other library dependencies will have similar libs and incs flags for the library objects and for the header / fortran module files. | ||
==== Libraries ==== | ==== Libraries ==== |
hpc/linking_libraries.txt · Last modified: 2020/08/09 10:27 by Jean-Michel Beuken