It is currently 15 Apr 2021, 23:47
   
Text Size

Multithreaded AI sim command line mode

Moderators: timmermac, friarsol, Blacksmith, KrazyTheFox, Agetian, CCGHQ Admins

Multithreaded AI sim command line mode

Postby AstroRetro » 27 Jan 2020, 08:18

It would be great to enhance the simulation capability of Forge to embrace multithreading. The headless, AI vs AI command line utility has great potential but could be much faster. From the forge.log file I can see that the JVM correctly detects the number of CPU cores available, but once the simulation is under way it runs all games and matches in a single thread sequentially. This is rather slow, so it would be great if sim mode could assign each match to a new thread and bring the final match result to forge.log.

Alternatively, I could script my own tournaments in another programming language and have multiple instances of forge running in parallel (within limitations of cores and RAM). The problem here is that each will be trying to write to one forge.log file. A new command line argument to specify the output log file name would help here.

I see that others are also interested in this:
forum/viewtopic.php?f=26&t=29233&p=241162#p241162
AstroRetro
 
Posts: 1
Joined: 27 Jan 2020, 05:08
Has thanked: 2 times
Been thanked: 0 time

Return to Forge

Who is online

Users browsing this forum: No registered users and 17 guests


Who is online

In total there are 17 users online :: 0 registered, 0 hidden and 17 guests (based on users active over the past 10 minutes)
Most users ever online was 1371 on 09 Feb 2020, 16:22

Users browsing this forum: No registered users and 17 guests

Login Form