Page 1 of 1

centos7 and Intel AVX instructions support

Posted: 2020/05/03 07:26:33
by abhay2101
Hi,

I had question regarding Intel AVX instructions set support for centos:
1. first of all is this support out of the box means compiler and OS level support.
2. If yes what are the steps to enable the same.

Didn't see much is info here in the forum so thought of confirming.

Thanks in advance.

Re: centos7 and Intel AVX instructions support

Posted: 2020/05/03 10:19:03
by jlehtone
Yes, the kernel does expose the instruction set to applications.

Yes, the default compiler (based on GCC 4.8.5) can generate code that uses various instruction sets.
Intel Core CPU with 64-bit extensions, MOVBE, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2, AES, PCLMUL, FSGSBASE, RDRND, FMA, BMI, BMI2 and F16C instruction set support.
Software Collections (SCL) have Clang 7.01 and GCC 9.1.1, if you need more recent compilers.


How to write code and use a compiler is more a question about compiler than CentOS.

Re: centos7 and Intel AVX instructions support

Posted: 2020/05/06 23:16:24
by abhay2101
Gotcha. Thanks.