KMP_AFFINITY

Setting thread affinity on SMT or HT enabled systems for better performance

For SMT (Simultaneou Mutli Threading) or HT (Hyper Threading) enabled systems, for. e.g: "Nehalem" based machines to get best MKL performance we recommend you to set thread affinity.
  • Библиотека Intel® Math Kernel Library
  • SMT
  • HT ON
  • KMP_AFFINITY
  • Thread Affinity
  • Оптимизация
  • Bogus OpenMP KMP_AFFINITY warnings on non-Intel processor hosts

    An application compiled with -Qopenmp (Windows*)/-openmp (Linux*) and run on a host not containing a genuine Intel® processor may generate bogus OMP: Warning #71 and Warning #72.
  • Linux*
  • Microsoft Windows* (XP, Vista, 7)
  • C/C++
  • Fortran
  • Intel® C++ Compiler
  • Intel® Fortran Compiler
  • OpenMP*
  • KMP_AFFINITY
  • Using KMP_AFFINITY to create OpenMP* thread mapping to OS proc IDs

    This article explains how to create your own OpenMP* thread mapping to OS proc IDs with Intel® C/C++ and Fortran compiler, by setting environment variable KMP_AFFINITY. It also provides some thread affinity demo results on when use different settings.
  • Linux*
  • Microsoft Windows* (XP, Vista, 7)
  • C/C++
  • Fortran
  • Компиляторы
  • Intel® C++ Compiler
  • Intel® Fortran Compiler
  • KMP_AFFINITY
  • Thread Affinity
  • thread mapping
  • thread bindings
  • OpenMP*
  • Многопоточность
  • Intel thread affinity environment variable for OpenMP*

    Intel thread affinity environment variable KMP_AFFINITY for openMP is explained in Compiler Intel® compiler user guide topic “Thread Affinity Interface (Linux* and Windows*)”.
  • Linux*
  • Microsoft Windows* (XP, Vista, 7)
  • Apple OS X*
  • C/C++
  • Intel® C++ Compiler
  • OpenMP*
  • KMP_AFFINITY
  • Thread Affinity
  • Подписаться на KMP_AFFINITY