Closed DilumAluthge closed 3 years ago
I think something is not threadsafe inside loop 3. Is it Aptr
? I.e. is Aptr
the same across threads, and could that be the problem?
Does each thread inside loop 3 needs its own Aptr
? Since each thread will be trying to copy into that location.
Oops, just saw this, yes, you're exactly right.
Every thread needs its own Aptr
.
Every thread should make their own Aptr
(which should be stack allocated, and hence free to do) and then pack it and use it for multiplication. So it shouldn't take any real management effort, unlike Bptr
.
Codecov Report
100.00% <100.00%> (ø)
Continue to review full report at Codecov.