To provide good default performance across different architectures,
default compiler flags are set to -mtune=native -mavx2 -mfma -O3 when
compiled with ENABLE_AMD_FLAGS or ENABLE_AMD_AOCC_FLAGS options. This
means, AOCL-LAPACK requires minimum AVX2 and Fused Multiply Accumulate
(FMA) support from the target CPU.
However, the library can be compiled with a different ISA flag, such as AVX512 depending on the ISA supported on the target CPU. You can use the following steps:
Set the flag, LF_ISA_CONFIG to the desired ISA support. The available
options are Auto, AVX2 (default), AVX512, and None. The command to use
this is as follows:
$ cmake .. -DLF_ISA_CONFIG=AVX512 -DENABLE_AMD_FLAGS=ON