Installing software in your home directory/fr: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "==Utiliser les libraries== Le moyen le plus simple pour utiliser une librairie est habituellement de charger d'abord le module correspondant avec {{Commande|module load librar...")
No edit summary
Line 24: Line 24:
Une fois le module chargé, vous pouvez modifier les liens établis au cours du processus de ''build'' pour inclure la librairie, par exemple
Une fois le module chargé, vous pouvez modifier les liens établis au cours du processus de ''build'' pour inclure la librairie, par exemple
{{Commande|gcc -o my_prog file1.o file2.o -llapack -lblas}}
{{Commande|gcc -o my_prog file1.o file2.o -llapack -lblas}}
pour lier les librairies LAPACK et BLAS. Sur la ligne pour le lien, la nom de librairie doit être préfixé par <tt>-l</tt>; il s'agit d'un fichier de type <tt>.a</tt> ou <tt>.so</tt>. The documentation for the library will typically inform you of the name of this file and, if there are more than one such file (as may be the case), the order in which they should be linked. Note that you will also need to load the library module when you wish to run this software, not only during the building of it.
pour lier les librairies LAPACK et BLAS. Sur la ligne pour le lien, le nom de la librairie doit être préfixé par <tt>-l</tt>; il s'agit d'un fichier de type <tt>.a</tt> ou <tt>.so</tt>. The documentation for the library will typically inform you of the name of this file and, if there are more than one such file (as may be the case), the order in which they should be linked. Note that you will also need to load the library module when you wish to run this software, not only during the building of it.


== BLAS/LAPACK et MKL ==
== BLAS/LAPACK et MKL ==
rsnt_translations
53,464

edits

Navigation menu