Code: Select all
.. violates parallel usage rules
regards
Al
Code: Select all
.. violates parallel usage rules
Code: Select all
#pragma I really do no what I'm doing with this shared storage element
Code: Select all
#pragma shared array
Code: Select all
val=readarray(idx);
Code: Select all
#define writeArray(arr, idx, val) asm("stw %0, %1[%2]":: "r"(val), "r"(arr), "r"(idx))
#define readArray(arr, idx, val) asm("ldw %0, %1[%2]": "=r"(val): "r"(arr), "r"(idx))
Code: Select all
add r2,r1,0
Code: Select all
#pragma shared array
Simple answers might be:what is the rational behind preventing the sharing of arrays