Skip to content
Snippets Groups Projects
Commit 374a1242 authored by Jan Siwiec's avatar Jan Siwiec
Browse files

Update magma-for-intel-xeon-phi.md

parent 15b59aa1
No related branches found
No related tags found
4 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section
# MAGMA for Intel Xeon Phi # MAGMA for Intel Xeon Phi
Next generation dense algebra library for heterogeneous systems with accelerators A next generation dense algebra library for heterogeneous systems with accelerators.
## Compiling and Linking With MAGMA ## Compiling and Linking With MAGMA
To be able to compile and link code with MAGMA library user has to load following module: To be able to compile and link code with the MAGMA library, the user has to load the following module:
```console ```console
$ ml magma/1.3.0-mic $ ml magma/1.3.0-mic
``` ```
To make compilation more user friendly module also sets these two environment variables: To make compilation more user friendly, the module also sets these two environment variables:
!!! note !!! note
MAGMA_INC - contains paths to the MAGMA header files (to be used for compilation step) MAGMA_INC - contains paths to the MAGMA header files (to be used for compilation step).
!!! note !!! note
MAGMA_LIBS - contains paths to MAGMA libraries (to be used for linking step). MAGMA_LIBS - contains paths to the MAGMA libraries (to be used for linking step).
Compilation example: Compilation example:
...@@ -27,7 +27,7 @@ $ icc -mkl -O3 -DHAVE_MIC -DADD_ -Wall -fPIC -Xlinker -zmuldefs -Wall -DNOCHANGE ...@@ -27,7 +27,7 @@ $ icc -mkl -O3 -DHAVE_MIC -DADD_ -Wall -fPIC -Xlinker -zmuldefs -Wall -DNOCHANGE
### Running MAGMA Code ### Running MAGMA Code
MAGMA implementation for Intel MIC requires a MAGMA server running on accelerator prior to executing the user application. The server can be started and stopped using following scripts: MAGMA implementation for Intel MIC requires a MAGMA server running on accelerator prior to executing the user application. To start or stop the server, use the following scripts:
!!! note !!! note
To start MAGMA server use: To start MAGMA server use:
...@@ -41,7 +41,7 @@ MAGMA implementation for Intel MIC requires a MAGMA server running on accelerato ...@@ -41,7 +41,7 @@ MAGMA implementation for Intel MIC requires a MAGMA server running on accelerato
For deeper understanding how the MAGMA server is started, see the following script: For deeper understanding how the MAGMA server is started, see the following script:
**$MAGMAROOT/launch_anselm_from_mic.sh** **$MAGMAROOT/launch_anselm_from_mic.sh**
To test if the MAGMA server runs properly we can run one of examples that are part of the MAGMA installation: To test if the MAGMA server runs properly we can run one of the examples that are part of the MAGMA installation:
```console ```console
[user@cn204 ~]$ $MAGMAROOT/testing/testing_dgetrf_mic [user@cn204 ~]$ $MAGMAROOT/testing/testing_dgetrf_mic
...@@ -64,10 +64,10 @@ To test if the MAGMA server runs properly we can run one of examples that are pa ...@@ -64,10 +64,10 @@ To test if the MAGMA server runs properly we can run one of examples that are pa
``` ```
!!! hint !!! hint
MAGMA contains several benchmarks and examples in `$MAGMAROOT/testing/` MAGMA contains several benchmarks and examples in `$MAGMAROOT/testing/`.
!!! note !!! note
MAGMA relies on the performance of all CPU cores as well as on the performance of the accelerator. Therefore on Anselm number of CPU OpenMP threads has to be set to 16 with `export OMP_NUM_THREADS=16`. MAGMA relies on the performance of all CPU cores as well as on the performance of the accelerator. Therefore on Anselm, the number of CPU OpenMP threads has to be set to 16 with `export OMP_NUM_THREADS=16`.
See more details at [MAGMA home page][a]. See more details at [MAGMA home page][a].
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment