pavandsp

Can Lookup table be defined in .cl in GPU mode

Discussion created by pavandsp on Mar 23, 2010
Latest reply on Mar 25, 2010 by davibu

Hi

I am using a lookup table in the kernel and defined in the kernel itself.It seems the kernel is using rightly this table in CPU mode but not in GPU mode...shouldn't we define  a tables like this  in kernel in GPU...or we should send the table as an arg to the kernel.

I defined the table something like this is .cl file

const unsigned char lookup_table[256]={.....};

I am getting weired results in GPU mode when accessing the table.

Please confirm

Outcomes