Changing a[][2] to a[][] as suggested made it work. It's not clear to me why it should matter that it's not dynamic in that axis or are arrays simply static or dynamic globally? It also doesn't fix the performance issue, parallel behaves in the same manner as the other implementation taking 3-4 times as long as doing it single threaded. I ran the students parallel example from here: http://ddili.org/ders/d.en/parallelism.html

And it worked correctly, taking half the time in parallel.

Reply via email to