Merge e6b05bbe5c into 21c8045214
This commit is contained in:
commit
3fd7bf402a
|
|
@ -2491,7 +2491,7 @@ static bool ggml_thread_apply_priority(int32_t prio) {
|
|||
// Newer Windows 11 versions aggressively park (offline) CPU cores and often place
|
||||
// all our threads onto the first 4 cores which results in terrible performance with
|
||||
// n_threads > 4
|
||||
#if _WIN32_WINNT >= 0x0602
|
||||
#if defined(_MSC_VER) && _WIN32_WINNT >= 0x0602
|
||||
THREAD_POWER_THROTTLING_STATE t;
|
||||
ZeroMemory(&t, sizeof(t));
|
||||
t.Version = THREAD_POWER_THROTTLING_CURRENT_VERSION;
|
||||
|
|
|
|||
Loading…
Reference in New Issue