Stockfish 15 is ready

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

KWRegan
Posts: 18
Joined: Wed Aug 19, 2015 9:06 pm

Re: Stockfish 15 is ready

Post by KWRegan »

As a technical note: With some edits, I was able to compile Stockfish 15 for Linux using an older c++17 version of gcc/g++, and it may even compile with c++14. There is one edit I would classify as not being minor---the rules of C++ as I see them require it:

In the file nnue/features/half_ka_v2_hm.cpp, you may need to insert the lines:


constexpr IndexType HalfKAv2_hm::PieceSquareIndex[COLOR_NB][PIECE_NB];
constexpr int HalfKAv2_hm::KingBuckets[64];


The reference that led me to this: https://stackoverflow.com/questions/801 ... texpr-char
User avatar
Deberger
Posts: 91
Joined: Sat Nov 02, 2019 6:42 pm
Full name: ɹǝƃɹǝqǝᗡ ǝɔnɹꓭ

Re: Stockfish 15 is ready

Post by Deberger »

KWRegan wrote: Mon May 02, 2022 12:12 am As a technical note: With some edits, I was able to compile Stockfish 15 for Linux using an older c++17 version of gcc/g++, and it may even compile with c++14. There is one edit I would classify as not being minor---the rules of C++ as I see them require it:

In the file nnue/features/half_ka_v2_hm.cpp, you may need to insert the lines:


constexpr IndexType HalfKAv2_hm::PieceSquareIndex[COLOR_NB][PIECE_NB];
constexpr int HalfKAv2_hm::KingBuckets[64];


The reference that led me to this: https://stackoverflow.com/questions/801 ... texpr-char
Looks good, add it to the list

Small cleanup April 2022

https://github.com/official-stockfish/S ... /pull/3973