Math-Linux.com

Knowledge base dedicated to Linux and applied mathematics.

Home > Linux > Tip of the day > GNU compilation for MIC architecture KNL Knights Landing

GNU compilation for MIC architecture KNL Knights Landing

GCC supports Intel Advanced Vector Extensions 512 instructions (AVX-512), including inline assembly support, extended existing and new registers, intrinsics set (covered by corresponding testsuite) and basic autovectorization. AVX-512 instructions are available via following GCC switches:

  • AVX-512 foundamental instructions -mavx512f
  • AVX-512 prefetch instructions -mavx512pf
  • AVX-512 exponential and reciprocal instructions -mavx512er
  • AVX-512 conflict detection instructions -mavx512cd.

Since GCC-5.2 [1] versions, you can compile source code with -mavx512f -mavx512er -mavx512cd -mavx512pf options.

For Gnu C compiler:


gcc -mavx512f -mavx512er -mavx512cd -mavx512pf -o executable code.c

For Gnu C++ compiler:


g++ -mavx512f -mavx512er -mavx512cd -mavx512pf -o executable code.cpp

For Gnul Fortran compiler:


gfortran -mavx512f -mavx512er -mavx512cd -mavx512pf -o executable code.f

-mavx512f and -mavx512cd are available on Intel Xeon and Intel Xeon Phi processors.

-mavx512er and -mavx512pf are only available on Intel Xeon Phi processors.


[1GCC-4.9 introduces first patches https://gcc.gnu.org/ml/gcc-patches/2014-02/msg00567.html

Also in this section

  1. Crontab : Scheduling Tasks
  2. Archiving and compressing data files tar
  3. Check/find version of numpy i’m using
  4. Comment changer son adresse MAC sous Linux
  5. Download music and videos .mp3, .wma, .avi, .mpg , divx with google
  6. Find list of options that python was compiled with
  7. Find out biggest cpu/memory consuming processes with ps command
  8. Generating a self-signed certificate using OpenSSL with Linux CentOs/RedHat for Apache/httpd
  9. GNU compilation for MIC architecture KNL Knights Landing
  10. Got permission denied while trying to connect to the Docker daemon socket
  11. How to change the MAC address on Linux
  12. How to Convert Text File From ISO-8859-15 to UTF-8 Encoding
  13. How to diff remote files using ssh ?
  14. How to encrypt/decrypt a file or directory in Linux?
  15. How to make a denial of a service with fork functions in BASH ?
  16. How to setup SSH timeout in shell script ?
  17. Intel compilation for MIC architecture KNL Knights Landing
  18. Linux How to connect to Windows with remote desktop RDP in CentOS 7 / RedHat 7
  19. Linux How to delete or remove printer from command line
  20. phpMyAdmin: Search and Replace in MySQL database
  21. Speedup GNU make build and compilation process
  22. SVN — Branch, Branching subversion howto
  23. SVN — How to ignore file or directory in subversion?
  24. Time a task: time