Multithreaded AI sim command line mode
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Multithreaded AI sim command line mode
by 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
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
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 166 guests