harfang3d / dogfight-sandbox-hg2

Air to air combat sandbox, created in Python 3 using the HARFANG 3D 2 framework.
GNU General Public License v3.0
155 stars 49 forks source link

Gathering environmental data in parallel on a GPU #90

Open Jin58857 opened 3 months ago

Jin58857 commented 3 months ago

Could you please let me know if the Harfang reinforcement learning platform is capable of running entirely on a GPU? This would enable it to handle multiple environments concurrently for gathering training data, potentially speeding up the training process.

muraatozbek commented 3 months ago

yes, it can run on a GPU. But i suggest to use on ubuntu.

Jin58857 commented 3 months ago

Thank you for your response. Could the entire program possibly be run on a GPU, thereby enabling the initiation of multiple independent environments on the GPU for parallel reinforcement learning training?

Jin58857 commented 3 months ago

yes, it can run on a GPU. But i suggest to use on ubuntu.

Could you please advise which parts of the program need to be modified in order to support running environments in parallel on a GPU for data collection?

muraatozbek commented 3 months ago

Check the line

https://github.com/harfang3d/dogfight-sandbox-hg2/blob/185af133afaccf901cb2fbe40c2339f9ae0edaf8/source/main.py#L24

try to give your port number, run first script. after change port to another number and run again script. now you have 2 simulation runs parallel