It is currently 16 Apr 2024, 07:09
   
Text Size

Multithreaded AI sim command line mode

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, 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: 2
Joined: 27 Jan 2020, 05:08
Has thanked: 3 times
Been thanked: 0 time

Return to Forge

Who is online

Users browsing this forum: No registered users and 69 guests


Who is online

In total there are 69 users online :: 0 registered, 0 hidden and 69 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 69 guests

Login Form