Skip to content

mkl-amd

Description

mkl-amd website

Intel MKL has been known to use a SSE code paths on AMD CPUs that support newer SIMD instructions such as those that use the Zen microarchitecture. A well-known trick has been to set the MKL_DEBUG_CPU_TYPE environment variable to the value 5 to force the use of AVX2 kernels on AMD Zen CPUs. Unfortunately, this variable has been removed from Intel MKL 2020 Update 1 and later.

This module adds a fakeintel.so library that simulates the presence of an intel cpu even running on an AMD cpu.

If you link MKL dynamically into your own application, you do not have to make a separate shared library to preload. You can simply define the mkl_serv_intel_cpu_true symbol/function in your binary.

Environment Modules

Run module spider mkl-amd to find out what environment modules are available for this application.

Environment Variables

  • HPC_MKLAMD_LIB - library directory

Categories

programming, library, math, compiler