Commit 2524684f authored by Lukáš Krupčík's avatar Lukáš Krupčík
Browse files

docs.it4i/salomon/software/intel-xeon-phi.md

parent c913ab8d
Pipeline #2122 passed with stages
in 58 seconds
......@@ -15,13 +15,13 @@ $ qsub -I -q qprod -l select=1:ncpus=24:accelerator=True:naccelerators=2:acceler
To set up the environment module "intel" has to be loaded, without specifying the version, default version is loaded (at time of writing this, it's 2015b)
```console
$ ml intel
$ ml intel
```
Information about the hardware can be obtained by running the micinfo program on the host.
```console
$ /usr/bin/micinfo
$ /usr/bin/micinfo
```
The output of the "micinfo" utility executed on one of the cluster node is as follows. (note: to get PCIe related details the command has to be run with root privileges)
......@@ -149,7 +149,7 @@ $ ml intel
For debugging purposes it is also recommended to set environment variable "OFFLOAD_REPORT". Value can be set from 0 to 3, where higher number means more debugging information.
```console
export OFFLOAD_REPORT=3
export OFFLOAD_REPORT=3
```
A very basic example of code that employs offload programming technique is shown in the next listing. Please note that this code is sequential and utilizes only single core of the accelerator.
......@@ -295,13 +295,13 @@ Intel MKL includes an Automatic Offload (AO) feature that enables computationall
The Automatic Offload may be enabled by either an MKL function call within the code:
```cpp
mkl_mic_enable();
mkl_mic_enable();
```
or by setting environment variable
```console
$ export MKL_MIC_ENABLE=1
$ export MKL_MIC_ENABLE=1
```
To get more information about automatic offload please refer to "[Using Intel® MKL Automatic Offload on Intel ® Xeon Phi™ Coprocessors](http://software.intel.com/sites/default/files/11MIC42_How_to_Use_MKL_Automatic_Offload_0.pdf)" white paper or [Intel MKL documentation](https://software.intel.com/en-us/articles/intel-math-kernel-library-documentation).
......
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