Better HN
topnewbestaskshowjobs
Log inSign up

MutatedFlood

6 karma · joined Jan 21, 2020 (6y ago) · 3 submissions

Submissions

comment 6y ago · link · parent

You're right. I plan to add multiprocessing support such that there would be numCPU processes, each running one event loop. Which should scale properly.

What kinds of benchmark do you suggest? I'll do my best to provide one.

Thanks for the feedback.

comment 6y ago · link · parent

Thanks for the feedback.

OpenAI said they used multiple processes (it seems that they used multiprocessing module from your link). Processes is handled by OS and, it depends, sometimes will only switch to another process on long CPU stalls. I used an event loop to manage that, which supposedly should be fixed those long stalls.

Also, this version runs on a single CPU while OpenAI's probably won't, given a multicore CPU. My initial thought was that extending using multiprocessing is much easier than wrapping it using an event loop, hence I only implemented the event loop part.

3.

Show HN: A batched, concurrent wrapper for OpenAI gym library

12 points · by MutatedFlood · 6y ago · 5 comments