pluribus-poker-bot-js icon indicating copy to clipboard operation
pluribus-poker-bot-js copied to clipboard

Solutions to use NodeJS with multiple cores with a shared memory

Open Mudr0x opened this issue 3 years ago • 3 comments

Hello,

Here's some threads and projects that could help to have pluribus-poker-bot-js working with multiple cores in a shared memory environement:

https://github.com/nodejs/help/issues/560 https://github.com/nodejs/node/issues/14158

https://www.npmjs.com/package/@markusjx/shared_memory https://github.com/Microsoft/napajs/ https://www.npmjs.com/package/mmap-object https://github.com/audreyt/node-webworker-threads

I will try to test which solution fit the best for this project and give you my feedback, any help would be welcome thanks ;)

Also, I would like to know if issues of hands that aren't played correctly have been resolved or not please?

Regards.

Mudr0x avatar Jul 17 '21 10:07 Mudr0x

Hi @Mudr0x , thanks for this. Did you find a solution to run my code multi-threaded with shared memory? Please contact me at [email protected], we can have a chat and figure this out.

It would be cool to make a combined effort. Maybe in C++ because of shared memory and because Python is pretty slow.

Karsens avatar Aug 15 '21 16:08 Karsens

Hi, yes now NodeJS has a good way to run in multi-threaded with ‘workers’. I have already succeed to run your code with workers and it’s really running much faster and now I’m working to share the treeMap{} result between workers in a shared array memory object, when I succeed to finish this I will share my code.

From: Wijnand @.> Sent: Sunday, August 15, 2021 6:05 PM To: @.> Cc: @.>; @.> Subject: Re: [Karsens/pluribus-poker-bot-js] Solutions to use NodeJS with multiple cores with a shared memory (#2)

Hi @Mudr0xhttps://github.com/Mudr0x , thanks for this. Did you find a solution to run my code multi-threaded ? Please contact me at @.@.>, we can have a chat and figure this out.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Karsens/pluribus-poker-bot-js/issues/2#issuecomment-899071909, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AS2RSZ6S4UD5XJ4QPYPXDJLT47QSZANCNFSM5AQ5ZC5A. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

Mudr0x avatar Aug 16 '21 07:08 Mudr0x

Let me just drop this, if anyone would join, we could impl. this https://github.com/nodejs/help/issues/560#issuecomment-993832308

kyr0 avatar Dec 14 '21 17:12 kyr0