News for hackers. Stuff that matters.
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.
Re:Test for lists in Cython by pletnes on Monday April 19, 2021 @09:26AM (#26862488)
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?
Re:Test for lists in Cython by ZuLuuuuuu on Thursday April 22, 2021 @08:02AM (#26901760)
I wrote a small code to test it. Unfortunately it didn't work, but I don't know if the problem is me, maybe I made a mistake...