From: Gary Funck (gary_at_intrepid_dot_com)
Date: Fri Jul 17 2009 - 14:36:02 PDT
Attached, is different implementation that allocates each a[i] in thread-distributed fashion, and each thread allocates its own thread-local storage for a[j] where (j%MYTHREAD) == MYTHREAD. As a final step, thread 0 verifies that each a[i] has the exected affinity. - Gary