rl-institut / simbev

MIT License
10 stars 4 forks source link

MP doesn't work on win machines #29

Closed nesnoj closed 3 years ago

nesnoj commented 3 years ago

Workers do not get initialized or do not start, simbev only produces an empty dir. Restructure main file to cover MP for linux+win.

mosc5 commented 3 years ago

The issue seems to be that windows does not use fork(). Any variable that was set under if __name__ == '__main__' is not accessible for each process in the pool. main_simbev.py needs to be restructured to account for this.

mosc5 commented 3 years ago

Restructuring the main script this way seems to have solved the problem!