aims-umich / neorl

NeuroEvolution Optimization with Reinforcement Learning
MIT License
51 stars 18 forks source link

The logo ‘NEORL’ show three times when using parallelization computing (ncores > 1) #8

Closed XuboGU closed 3 years ago

XuboGU commented 3 years ago

When ncores is set to more than one, then the logo 'NEORL' will show three times rather than only once.

mradaideh commented 3 years ago

Thank you @XuboGU for noticing that, I actually got this question frequently, so to clarify here we left this logo print as many as ncores to give the user a self-check that NEORL parallel engine is running fine on the algorithm end. So any failure in parallelization after seeing many logos would come from the user objective function.

This for example may happen if you are running expensive codesin parallel as part of your objective, where you have to properly manage your code runs/files inside the objective function to avoid parallel cases crashing each other, which in this case is not a NEORL issue. Hope this clarifies the purpose.