From: mstembera Date: Mon, 24 Aug 2020 10:38:01 +0000 (-0700) Subject: Allow for VNNI256 compilation with g++-8 X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=530fccbf272ffe424ae53a464b91db148cc968ae 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 --- diff --git a/.travis.yml b/.travis.yml index c1e6d6df..092c7f53 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/src/Makefile b/src/Makefile index 228ea851..2e85a144 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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