The membw tool depends on AVX-512 foundation instructions, which are
supported in gcc version 4.9 or above. Building with older version gcc
leads to compilation failure.
Add CFLAGs -mavx512f in Makefile only when gcc supports avx512. In
addition, add gcc version check in avx512 related stores operations.
The membw tool depends on AVX-512 foundation instructions, which are supported in gcc version 4.9 or above. Building with older version gcc leads to compilation failure.
Add CFLAGs -mavx512f in Makefile only when gcc supports avx512. In addition, add gcc version check in avx512 related stores operations.
Signed-off-by: Xiaochen Shen xiaochen.shen@intel.com
Description
Fix https://github.com/intel/intel-cmt-cat/issues/156
NOTE:
Affected parts
Motivation and Context
Fix https://github.com/intel/intel-cmt-cat/issues/156 This issue breaks the building of intel-cmt-cat if avx512 is not supported by gcc.
How Has This Been Tested?
Test steps:
Without the fix:
With the fix:
Types of changes
Checklist: