From ff471034f7d12a12bf321a30b319f5713a73217a Mon Sep 17 00:00:00 2001 From: rektdie Date: Wed, 6 Aug 2025 14:36:07 +0200 Subject: [PATCH] changed thread stack size to 8MB | bench 10099292 --- source/datagen.cpp | 2 +- source/uci.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/source/datagen.cpp b/source/datagen.cpp index 9e1a2ac..d29410f 100644 --- a/source/datagen.cpp +++ b/source/datagen.cpp @@ -217,7 +217,7 @@ void Run(int targetPositions, int threads) { for (int i = 0; i < threads - 1; ++i) { pthread_attr_t attr; pthread_attr_init(&attr); - pthread_attr_setstacksize(&attr, 2 * 1024 * 1024); // 2 MB stack + pthread_attr_setstacksize(&attr, 8 * 1024 * 1024); // 2 MB stack auto* args = new std::tuple*, std::atomic*>(i, &positions, &stopFlag); diff --git a/source/uci.cpp b/source/uci.cpp index 47a0742..d5045fd 100644 --- a/source/uci.cpp +++ b/source/uci.cpp @@ -1,9 +1,7 @@ #include "uci.h" #include -#include #include #include -#include #include #include #include "types.h" @@ -82,7 +80,7 @@ static void* ThreadFunc(void* arg) { static void StartSearchThread(Board& board, SearchParams params, SEARCH::SearchContext* ctx) { pthread_attr_t attr; pthread_attr_init(&attr); - pthread_attr_setstacksize(&attr, 2 * 1024 * 1024); // 2 MB stack + pthread_attr_setstacksize(&attr, 8 * 1024 * 1024); // 2 MB stack pthread_t thread;