[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] Threaded rollouts and RNGs

From: Øystein Schønning-Johansen
Subject: [Bug-gnubg] Threaded rollouts and RNGs
Date: Wed, 1 Feb 2017 11:11:07 +0100


It's a long time since I browsed the GNU Backgammon code now. :-)

The rollout code in GNU Backgammon is of course threaded. How is this threaded actually? Is it threaded on each sample (aka each game). One thread pr. game? Or one thread pr. evaluation? Or?

I just wrote a code that does a threaded MC simulation of a different problem, and I noticed that I got significantly different results depending on either I used threading or not. Funny thing, it didn't initially occur to me, but of course I need one separate RNG instance for each thread. Fixing that didn't only give me the right results of the simulation, but it also improved the performance.

How about GNU Backgammon? Do you use one separate RNG instance for each thread?

best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]