mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
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
This commit is contained in:
parent
843a961a8c
commit
530fccbf27
2 changed files with 2 additions and 3 deletions
|
@ -79,8 +79,7 @@ script:
|
||||||
- make clean && make -j2 ARCH=x86-64-bmi2 build
|
- 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-avx512 build
|
||||||
- make clean && make -j2 ARCH=x86-64-vnni512 build
|
- make clean && make -j2 ARCH=x86-64-vnni512 build
|
||||||
# requires gcc 9 or higher
|
- make clean && make -j2 ARCH=x86-64-vnni256 build
|
||||||
- if [[ "$COMPILER" != "g++-8" ]]; make clean && make -j2 ARCH=x86-64-vnni256 build; fi
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Check perft and reproducible search
|
# Check perft and reproducible search
|
||||||
|
|
|
@ -516,7 +516,7 @@ endif
|
||||||
ifeq ($(vnni256),yes)
|
ifeq ($(vnni256),yes)
|
||||||
CXXFLAGS += -DUSE_VNNI
|
CXXFLAGS += -DUSE_VNNI
|
||||||
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
|
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
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue