X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmisc.h;h=36185b87e1710d05f6c1ff144b723bdcac49acdc;hp=a2307fe779ad7fda3463031fe6bdbbb3223735f3;hb=0d9a9f5e985c13852cf9f29767e95f295bb29575;hpb=6036303bb621d61fcc9b3328701926dc69e8efc1 diff --git a/src/misc.h b/src/misc.h index a2307fe7..36185b87 100644 --- a/src/misc.h +++ b/src/misc.h @@ -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