BLAS and LAPACK: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 15: Line 15:


= How do I compile against FlexiBLAS ? = <!--T:5-->
= How do I compile against FlexiBLAS ? = <!--T:5-->
Unfortunately, FlexiBLAS is relatively new, and not all build systems will recognize it by default. This can generally be fixed by setting the linking options to use <tt>-lflexiblas</tt> for BLAS and for LAPACK. You will typically find these options in your Makefile, or be able to pass them as parameters to <tt>configure</tt> or <tt>cmake</tt>. Newer <tt>cmake</tt> can find FlexiBLAS automatically; to run a newer <tt>cmake</tt> you must load a <tt>cmake</tt> module.
Unfortunately, FlexiBLAS is relatively new, and not all build systems will recognize it by default. This can generally be fixed by setting the linking options to use <tt>-lflexiblas</tt> for BLAS and for LAPACK. You will typically find these options in your Makefile, or be able to pass them as parameters to <tt>configure</tt> or <tt>cmake</tt>. Versions 3.19 and higher of CMake can find FlexiBLAS automatically; you must load one of the <tt>cmake/3.20.1</tt> or <tt>cmake/3.21.4</tt> modules to use such a version.
{{Note|On [[Narval]], the <tt>flexiblas</tt> module is loaded by default. On other clusters, you may need to load the <tt>flexiblas</tt> module before being able to use it.}}
{{Note|On [[Narval]], the <tt>flexiblas</tt> module is loaded by default. On other clusters, you may need to load the <tt>flexiblas</tt> module before being able to use it.}}


cc_staff
153

edits