build:linear_algebra
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
build:linear_algebra [2016/04/08 17:11] – Yann Pouillon | build:linear_algebra [2019/08/26 12:29] (current) – Jean-Michel Beuken | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <WRAP important> | ||
+ | |||
====== Configuring linear algebra ====== | ====== Configuring linear algebra ====== | ||
Line 8: | Line 10: | ||
* the tremendous diversity of the available implementations, | * the tremendous diversity of the available implementations, | ||
- | It logically corresponds to the most complex core block of the build system. On one side, there are // | + | It logically corresponds to the most complex core block of the build system. On one side, there are // |
We have designed our implementation to cover the highest possible number of cases, while preserving a relative simplicity in the configuration of their parameters. For this, we have grouped the 3 above concepts under //flavors// that users select depending on their situations and preferences. | We have designed our implementation to cover the highest possible number of cases, while preserving a relative simplicity in the configuration of their parameters. For this, we have grouped the 3 above concepts under //flavors// that users select depending on their situations and preferences. | ||
- | Take your time to read this document | + | <WRAP tip> This document is best understood when consulted peacefully. Please take your time to read it and feel free to come back as many times as you wish.</ |
===== Linear algebra flavors ===== | ===== Linear algebra flavors ===== | ||
- | For sake of clarity, we provide here 3 different perspectives on the linear algebra flavors supported by Abinit and their relationships with the other concepts. The build system lets you configure linear algebra from each of these 3 perspectives, | + | For sake of clarity, we provide here 3 different perspectives on the linear algebra flavors supported by Abinit and their relationships with the other concepts. The build system lets you configure linear algebra from each of these 3 perspectives, |
+ | * a vendor-first approach, where the criterion is to use as many components as possible from the same vendor; | ||
+ | * an architecture-first approach, where the components are selected depending on which elements of the computer architecture are enabled (e.g. OpenMP, MPI, GPU, ...); | ||
+ | * a component-first approach, where you specify explicitly each linear algebra component (e.g. BLAS, LAPACK, ScaLAPACK, ...) you want to use. | ||
The following table lists the available flavors supported by Abinit and their relationships with the other relevant concepts: | The following table lists the available flavors supported by Abinit and their relationships with the other relevant concepts: | ||
Line 25: | Line 30: | ||
| elpa2014 | [[http:// | | elpa2014 | [[http:// | ||
| elpa2015 | [[http:// | | elpa2015 | [[http:// | ||
+ | | elpa2016 | [[http:// | ||
+ | | elpa2017 | [[http:// | ||
| essl | [[http:// | | essl | [[http:// | ||
| magma10 | | magma10 | ||
| magma15 | | magma15 | ||
- | | mkl | [[http:// | + | | magma25 |
+ | | mkl | [[http:// | ||
| netlib | | netlib | ||
| openblas | [[https:// | | openblas | [[https:// | ||
| plasma1 | | plasma1 | ||
- | By default, the build system assumes that you want the fastest possible linear algebra operations. When no linear algebra option is specified, it thus looks for each component as soon as its prerequisites are met. The only required components are BLAS and LAPACK, since Abinit relies on them in each and every situation. | + | Please refer to the instructions of each vendor listed above by clicking on the corresponding link to obtain information on how to install their linear algebra implementation. |
+ | |||
+ | ===== Automatic detection ===== | ||
+ | |||
+ | By default, the build system assumes that you want the fastest possible linear algebra operations. When no linear algebra option is specified, it thus looks for each component as soon as its prerequisites are met. The only required components are BLAS and LAPACK, since Abinit relies on them in each and every situation. | ||
+ | |||
+ | In the absence of any option, the build system will use an internal heuristic to look for linear algebra libraries and enable/ | ||
+ | - If a compiler vendor has a preferred linear algebra implementation, | ||
+ | - If a build framework such as [[https:// | ||
+ | - If MPI is enabled, ScaLAPACK and ELPA will be looked for. | ||
+ | - If everything else fails, the build system will look for a standard Netlib implementation available system-wide. | ||
+ | |||
+ | In all cases, the build system will try to mitigate side-effects on other components, e.g. FFT, but there is no guarantee that it will succeed by itself. This selection and detection process is known to work in the most common cases. If you have a customized linear algebra configuration, | ||
===== Linear algebra options ===== | ===== Linear algebra options ===== | ||
Line 42: | Line 62: | ||
You can tune the detection mechanism through the // | You can tune the detection mechanism through the // | ||
- | * by just specifying a plus-separated list of flavors, in which case the build system will figure out how to assign which flavor to which component; | + | * by just specifying a plus-separated list of flavors, in which case the build system will figure out how to assign which flavor to which component |
* architecture-wise, | * architecture-wise, | ||
* component-wise, | * component-wise, | ||
Line 63: | Line 83: | ||
__Example__: | __Example__: | ||
- | < | + | < |
- | will cause the build system to look for Atlas for //blas//, Netlib for //lapack// and // | + | will cause the build system to look for Atlas for //blas//, Netlib for //lapack// and // |
The following table links the serial and multicore architectures supported by Abinit with the other relevant concepts: | The following table links the serial and multicore architectures supported by Abinit with the other relevant concepts: |
build/linear_algebra.1460135473.txt.gz · Last modified: 2016/04/08 17:11 by Yann Pouillon