]> git.sesse.net Git - stockfish/commitdiff
Allow for VNNI256 compilation with g++-8
authormstembera <MissingEmail@email>
Mon, 24 Aug 2020 10:38:01 +0000 (03:38 -0700)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Mon, 24 Aug 2020 10:43:39 +0000 (12:43 +0200)
explicitly pass needed -mavx512f -mavx512bw flags

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

No functional change

.travis.yml
src/Makefile

index c1e6d6df41faf8733d3700c07cc997dd9c5adad7..092c7f53d31e764f0193c29e6804ad0a15d37991 100644 (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
index 228ea851f208154001cd3dcab5926d298ff240cb..2e85a144733981c7e6c1939024940086a7b8b176 100644 (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