Wiki source code of Intel Compiler

Version 2.1 by Thomas Coelho on 2023/02/27 14:39

Hide last authors
Thomas Coelho 1.1 1 Intel has rebranded its compilers and libraries and allows a free version for everyone.
2
Thomas Coelho 2.1 3 The new name is Intel oneAPI. [[url:https://www.intel.com/content/www/us/en/developer/tools/oneapi/overview.html]]
Thomas Coelho 1.1 4
5 We have installed the Base and HPC package in the shared folder
6
7 /home/software/intel/oneapi
8
9 You can use it by sourcing the following file:
10
Thomas Coelho 2.1 11 {{{. /home/software/intel/oneapi/setvars.sh}}}
Thomas Coelho 1.1 12
13 Unfortunately this script take some seconds to complete, it is not recommended to include it into the bashrc. We will look for a faster solution for the use in the bashrc.
14
15
Thomas Coelho 2.1 16
Thomas Coelho 1.1 17 == Implicit parallelization ==
18
19 This version of MKL has internal parallel code (based on openMP) which uses all CPUs in the system. This is fine on the desktop as it will speed up your caluclation. But on the compute nodes this will conflict with other jobs running on the same machine. Therefore you have to restrict the number CPUs used to the number of allocated slots in SGE. Your can do this by defining the following environment variable:
20
Thomas Coelho 2.1 21 {{{ export OMP_NUM_THREADS=x}}}
Thomas Coelho 1.1 22
23 where x is the number of allocated slots. Using 1 means traditional serial processing. You should benchmark your program how many parallel threads will give a reasonable performance per CPU value.
24
25 == Documentation ==
26
Thomas Coelho 2.1 27 The comprehensive set of Intel documentation will be found under **/home/software/intel/documentation_2018/en**.