Code compilation
Intel compiler
Gnu compiler
Code execution
To execute your code you need to
- have a binary, the result of the code compilation,
- have a slurm job script,
- submit the slurm jobs script.
The examples for slurm jobs scripts cover the setup
- 1 node,
- 1 OpenMP code running.
You can run different OpenMP codes at the same time. The examples cover the setup
- 2 nodes,
- 4 OpenMP codes run simultaneously.
- The code is not MPI parallel.
mpirun
is used to start the codes only.
Intel compiler flags
To make full use of the vectorizing capabilities of the CPUs, AVX512 instructions and the 512bit ZMM registers can be used with the following compile flags with the Intel compilers:
-xCORE-AVX512 -qopt-zmm-usage=high
However, high ZMM usage is not recommended in all cases (read more).
With GNU compilers (GCC 7.x and later), architecture-specific optimization for Skylake and Cascade Lake CPUs is enabled with
-march=skylake-avx512
Using the Intel MKL
The Intel® Math Kernel Library (Intel® MKL) is designed to run on multiple processors and operating systems. It is also compatible with several compilers and third party libraries, and provides different interfaces to the functionality. To support these different environments, tools, and interfaces Intel MKL provides multiple libraries from which to choose.
Check out the link below to see what libraries are recommended for a particular use case. https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/