1
0
Fork 0

Allow for VNNI256 compilation with g++-8

explicitly pass needed -mavx512f -mavx512bw flags

closes https://github.com/official-stockfish/Stockfish/pull/3061

No functional change
pull/3062/head
mstembera 2020-08-24 03:38:01 -07:00 committed by Joost VandeVondele
parent 843a961a8c
commit 530fccbf27
2 changed files with 2 additions and 3 deletions

View File

@ -79,8 +79,7 @@ script:
- make clean && make -j2 ARCH=x86-64-bmi2 build
- make clean && make -j2 ARCH=x86-64-avx512 build
- make clean && make -j2 ARCH=x86-64-vnni512 build
# requires gcc 9 or higher
- if [[ "$COMPILER" != "g++-8" ]]; make clean && make -j2 ARCH=x86-64-vnni256 build; fi
- make clean && make -j2 ARCH=x86-64-vnni256 build
#
# Check perft and reproducible search

View File

@ -516,7 +516,7 @@ endif
ifeq ($(vnni256),yes)
CXXFLAGS += -DUSE_VNNI
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
CXXFLAGS += -mavx512vnni -mavx512dq -mavx512vl -mprefer-vector-width=256
CXXFLAGS += -mavx512f -mavx512bw -mavx512vnni -mavx512dq -mavx512vl -mprefer-vector-width=256
endif
endif