mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
[NNUE] update compiler info with flags
as several new flags are added document compilation specifics under the compiler command. No functional change.
This commit is contained in:
34
src/misc.cpp
34
src/misc.cpp
@@ -140,7 +140,7 @@ const string engine_info(bool to_uci) {
|
|||||||
string month, day, year;
|
string month, day, year;
|
||||||
stringstream ss, date(__DATE__); // From compiler, format is "Sep 21 2008"
|
stringstream ss, date(__DATE__); // From compiler, format is "Sep 21 2008"
|
||||||
|
|
||||||
ss << "Stockfish NNUE " << Version << setfill('0');
|
ss << "Stockfish " << Version << setfill('0');
|
||||||
|
|
||||||
if (Version.empty())
|
if (Version.empty())
|
||||||
{
|
{
|
||||||
@@ -148,9 +148,7 @@ const string engine_info(bool to_uci) {
|
|||||||
ss << setw(2) << day << setw(2) << (1 + months.find(month) / 4) << year.substr(2);
|
ss << setw(2) << day << setw(2) << (1 + months.find(month) / 4) << year.substr(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
ss << (Is64Bit ? " 64" : "")
|
ss << (to_uci ? "\nid author ": " by ")
|
||||||
<< (HasPext ? " BMI2" : (HasPopCnt ? " POPCNT" : ""))
|
|
||||||
<< (to_uci ? "\nid author ": " by ")
|
|
||||||
<< "T. Romstad, M. Costalba, J. Kiiski, G. Linscott";
|
<< "T. Romstad, M. Costalba, J. Kiiski, G. Linscott";
|
||||||
|
|
||||||
return ss.str();
|
return ss.str();
|
||||||
@@ -216,7 +214,33 @@ const std::string compiler_info() {
|
|||||||
compiler += " on unknown system";
|
compiler += " on unknown system";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
compiler += "\n __VERSION__ macro expands to: ";
|
compiler += "\nCompilation settings include: ";
|
||||||
|
compiler += (Is64Bit ? " 64bit" : " 32bit");
|
||||||
|
#if defined(USE_AVX512)
|
||||||
|
compiler += " AVX512";
|
||||||
|
#endif
|
||||||
|
#if defined(USE_AVX2)
|
||||||
|
compiler += " AVX2";
|
||||||
|
#endif
|
||||||
|
#if defined(USE_SSE42)
|
||||||
|
compiler += " SSE42";
|
||||||
|
#endif
|
||||||
|
#if defined(USE_SSE41)
|
||||||
|
compiler += " SSE41";
|
||||||
|
#endif
|
||||||
|
#if defined(USE_SSSE3)
|
||||||
|
compiler += " SSSE3";
|
||||||
|
#endif
|
||||||
|
#if defined(USE_SSE3)
|
||||||
|
compiler += " SSE3";
|
||||||
|
#endif
|
||||||
|
compiler += (HasPext ? " BMI2" : "");
|
||||||
|
compiler += (HasPopCnt ? " POPCNT" : "");
|
||||||
|
#if !defined(NDEBUG)
|
||||||
|
compiler += " DEBUG";
|
||||||
|
#endif
|
||||||
|
|
||||||
|
compiler += "\n__VERSION__ macro expands to: ";
|
||||||
#ifdef __VERSION__
|
#ifdef __VERSION__
|
||||||
compiler += __VERSION__;
|
compiler += __VERSION__;
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user