Re:Test for lists in Cython
by ZuLuuuuuu on Monday April 19, 2021 @09:24AM
(#26862460)
I didn't know that. So let's say I have 4 regular Python threads calling the same function, and in this function, let's say I call numpy.add on the same array (but different parts of the array), then will it actually use different cores for these 4 different threads? I will try it out, if it works, then that's actually great and would be super easy.
[ Parent
| on HN ]
Great, then my comment was worth it!
Not sure there’s anything to prevent you from foot-shooting if you’re operating on the same array. I’d expect that this is only safe to do if, as you say, arrays are not overlapping. Let me know what you find.
Re:Test for lists in Cython
by captain_price7 on Monday April 19, 2021 @06:11PM
(#26868471)
The answer is No, isn't it?