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

Jump to navigation Jump to search
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
(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...")
Line 19: Line 19:
Si d'autres erreurs surviennent, contactez [mailto:support@computecanada.ca support@calculcanada.ca]. Pour les détails, consultez les pages  [https://docs.computecanada.ca/wiki/Make/fr Make], [https://docs.computecanada.ca/wiki/Autotools/fr Autotools] et [https://docs.computecanada.ca/wiki/CMake/fr CMake].
Si d'autres erreurs surviennent, contactez [mailto:support@computecanada.ca support@calculcanada.ca]. Pour les détails, consultez les pages  [https://docs.computecanada.ca/wiki/Make/fr Make], [https://docs.computecanada.ca/wiki/Autotools/fr Autotools] et [https://docs.computecanada.ca/wiki/CMake/fr CMake].


==Using Libraries==
==Utiliser les libraries==
Normally the simplest way to make use of a library on a Compute Canada system is to first load the corresponding module
Le moyen le plus simple pour utiliser une librairie est habituellement de charger d'abord le module correspondant avec
{{Command|module load library_name/x.y.z}}
{{Commande|module load library_name/x.y.z}}
With the module loaded, you can now modify the link phase of your build process to include the library, for example
Une fois le module chargé, vous pouvez modifier les liens établis au cours du processus de ''build'' pour inclure la librairie, par exemple
{{Command|gcc -o my_prog file1.o file2.o -llapack -lblas}}
{{Commande|gcc -o my_prog file1.o file2.o -llapack -lblas}}
if I wanted to link with the LAPACK and BLAS libraries. The link line needs to contain <tt>-l</tt> prefixed to the library name, which will be a file that has the extension <tt>.a</tt> or <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, 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.


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

edits

Navigation menu