AnsweredAssumed Answered

Indirect memory access read on GPU

Question asked by kaatish on Apr 16, 2012
Latest reply on Apr 16, 2012 by pesh

Hi,

I want to have a small table lookup (256 byte array) which would be the same for every work item. This table would be read very freq uently. Depending upon the data a workitem reads, a particular index of the table lookup must be read. Therefore, the access pattern is random and the compiler would not know at compile time as to which data is being read.

 

What is the effecient way of doing this? Would it work if this array is in texture memory so that it is cached?

 

Regards.

Outcomes