Runtime-check of CPU AVX support

1
2
#include <iostream>
#include <immintrin.h>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Sample code to check if CPU supports AVX instructions. (Examples on MSDN and Intel are very big and complicated)
I will probably update this later for AVX2 and also OS support ...

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.