Compilation error : Error: Code selection failed to select: 1D00EBA8: i32 = bswap 1D00ECB8

Hi,

I have a problem at the compile time for an opencl kernel :

“Error: Code selection failed to select: 1D00EBA8: i32 = bswap 1D00ECB8”

The line that do the error is :

“return ((scramble >> 8) & 0xffffff) / (float)(1 << 24);”

I have no idea of what it mean !!!

I have modified my code like this and it works, but don’t know why ! Of course, it returns 0 and not the right value !!!

float u = (float)n;

float y = (((float)u) / 256);

return 0.f;

But when I try to return the right value I have the error message (Here I return y and not 0.f) :

[/code]

float u = (float)n;

float y = (((float)u) / 256);

return y;

[/code]

Polar 01,

It seems you ran into some compiler problem. Which version of driver are you using? Would you be able to provide a more complete code and compiler option used? Just the device code will do.

Thanks.

– Yuan

Polar 01,

It seems you ran into some compiler problem. Which version of driver are you using? Would you be able to provide a more complete code and compiler option used? Just the device code will do.

Thanks.

– Yuan