From 8ffc74313eb930c649a85375bdc89ad5add7566f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Mon, 10 Aug 2020 15:41:33 +0200 Subject: [PATCH 1/2] doc/using/overlays.xml: add AMD BLIS/LIBFLAME to the BLAS/LAPACK list --- doc/using/overlays.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/using/overlays.xml b/doc/using/overlays.xml index 3fa68e32a3c..7f7c8bc42b5 100644 --- a/doc/using/overlays.xml +++ b/doc/using/overlays.xml @@ -184,6 +184,19 @@ self: super: The Nixpkgs attribute is mkl. + + + AMD + BLIS/LIBFLAME (optimized for modern AMD x86_64 CPUs) + + + The AMD BLIS library, with attribute amd-blis, + provides a BLAS implementation. The complementary AMD LIBFLAME + library, with attribute amd-libflame, provides + a LAPACK implementation. + + Introduced in Date: Mon, 10 Aug 2020 15:47:38 +0200 Subject: [PATCH 2/2] doc/using/overlays.xml: fix some small glitches --- doc/using/overlays.xml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/doc/using/overlays.xml b/doc/using/overlays.xml index 7f7c8bc42b5..7f6ee040c7c 100644 --- a/doc/using/overlays.xml +++ b/doc/using/overlays.xml @@ -178,7 +178,7 @@ self: super: Intel - MKL (only works on x86 architecture, unfree) + MKL (only works on the x86_64 architecture, unfree) The Nixpkgs attribute is mkl. @@ -201,16 +201,17 @@ self: super: Introduced in PR - #83888, we are able to override the ‘blas’ and ‘lapack’ - packages to use different implementations, through the - ‘blasProvider’ and ‘lapackProvider’ argument. This can be used + #83888, we are able to override the blas + and lapack packages to use different implementations, + through the blasProvider and + lapackProvider argument. This can be used to select a different provider. BLAS providers will have symlinks in $out/lib/libblas.so.3 and $out/lib/libcblas.so.3 to their respective BLAS libraries. Likewise, LAPACK providers will have symlinks in $out/lib/liblapack.so.3 and $out/lib/liblapacke.so.3 to their respective - LAPCK libraries. For example, Intel MKL is both a BLAS and + LAPACK libraries. For example, Intel MKL is both a BLAS and LAPACK provider. An overlay can be created to use Intel MKL that looks like: @@ -229,8 +230,9 @@ self: super: This overlay uses Intel’s MKL library for both BLAS and LAPACK interfaces. Note that the same can be accomplished at runtime - using LD_LIBRARY_PATH of libblas.so.3 and - liblapack.so.3. For instance: + using LD_LIBRARY_PATH of + libblas.so.3 and + liblapack.so.3. For instance: $ LD_LIBRARY_PATH=$(nix-build -A mkl)/lib:$LD_LIBRARY_PATH nix-shell -p octave --run octave