numo-narray icon indicating copy to clipboard operation
numo-narray copied to clipboard

Ractor compatibility

Open orlando-labs opened this issue 2 years ago • 3 comments

Hi. First of all, thanks for Numo.

I propose to make numo ractor-safe in order to use it with ruby 3 ractors by calling rb_ractor_safe(true) in the C-code. Otherwise it is not possible to parallelise computational-expensive applications using Numo within newly introduced ractors.

Thanks

orlando-labs avatar Feb 01 '22 10:02 orlando-labs

If you could review this, it would be a contribution... https://github.com/ruby-numo/numo-narray/pull/199

kojix2 avatar Feb 01 '22 11:02 kojix2

Thanks! I will try it with my current project and get back with the feedback, ok?

orlando-labs avatar Feb 01 '22 12:02 orlando-labs

https://github.com/ruby-numo/numo-narray/pull/199#issuecomment-1027988803

orlando-labs avatar Feb 02 '22 14:02 orlando-labs