Before building the AVX CPU program, check whether your machine supports AVX instructions by running the chk_avx.sh script.
$ cd avx_aie/avx
$ ./chk_avx.sh
Checking for AVX capabilities on this machine by looking at /proc/cpuinfo...
This machine supports AVX!
Only if the result, “This machine supports AVX!”, appears should you build and execute the program.
$ make
z = 10, 12, 14, 16, 18, 20, 22, 24