Commit 374a1242 authored by Jan Siwiec's avatar Jan Siwiec

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

parent 15b59aa1
Pipeline #11156 passed with stages
in 23 minutes and 14 seconds
# 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
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
$ 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
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
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:
......@@ -27,7 +27,7 @@ $ icc -mkl -O3 -DHAVE_MIC -DADD_ -Wall -fPIC -Xlinker -zmuldefs -Wall -DNOCHANGE
### 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
To start MAGMA server use:
......@@ -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:
**$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
[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
```
!!! hint
MAGMA contains several benchmarks and examples in `$MAGMAROOT/testing/`
MAGMA contains several benchmarks and examples in `$MAGMAROOT/testing/`.
!!! 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].
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment