Raistmer

Private array spilled in global memory?

Discussion created by Raistmer on May 6, 2010
Latest reply on May 6, 2010 by Raistmer
In kernel I use:
float4 d[128];

Assembly for RV770 gives:
01 MEM_SCRATCH_WRITE: VEC_PTR[0], R0, ARRAY_SIZE(128) ELEM_SIZE(3)
....
128 MEM_SCRATCH_WRITE: VEC_PTR[127], R0, ARRAY_SIZE(128) ELEM_SIZE(3)
129 MEM_SCRATCH_WRITE_ACK: VEC_PTR[128], R0, ARRAY_SIZE(128) ELEM_SIZE(3)

What it means? Whole array spilled into global memory?
I'm trying to cache data in registers to afoid global memory accesses so register spilling in memory not an option at all...

Outcomes