X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=36185b87e1710d05f6c1ff144b723bdcac49acdc;hp=5bb59d409a397c6a3f277d11ae8ba65529c9266e;hb=8765f9ce168b129b3283fc1e458eae2f8871b1d4;hpb=d4af15f682c1967450233ab62cba1a6c5d601df6 diff --git a/src/misc.h b/src/misc.h index 5bb59d40..36185b87 100644 --- a/src/misc.h +++ b/src/misc.h @@ -31,7 +31,7 @@ const std::string engine_info(bool to_uci = false); void prefetch(void* addr); -void start_logger(bool b); +void start_logger(const std::string& fname); void dbg_hit_on(bool b); void dbg_hit_on(bool c, bool b); @@ -97,4 +97,15 @@ public: { return T(rand64() & rand64() & rand64()); } }; + +/// Under Windows it is not possible for a process to run on more than one +/// logical processor group. This usually means to be limited to use max 64 +/// cores. To overcome this, some special platform specific API should be +/// called to set group affinity for each thread. Original code from Texel by +/// Peter Österlund. + +namespace WinProcGroup { + void bindThisThread(size_t idx); +} + #endif // #ifndef MISC_H_INCLUDED