Installing software in your home directory: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Marked this version for translation)
No edit summary
Line 24: Line 24:
<!--T:6-->
<!--T:6-->
If other errors arise, contact [mailto:support@computecanada.ca support]. For more information see [[Make]], [[Autotools]], and [[CMake]].
If other errors arise, contact [mailto:support@computecanada.ca support]. For more information see [[Make]], [[Autotools]], and [[CMake]].
==Using Libraries==
Normally the simplest way to make use of a library on a Compute Canada system is to first load the corresponding module
{{Command|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
{{Command|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.


== BLAS/LAPACK and MKL == <!--T:10-->
== BLAS/LAPACK and MKL == <!--T:10-->
Bureaucrats, cc_docs_admin, cc_staff
2,224

edits

Navigation menu