runtime errors

Hello,

While trying to build my OpenCL program I am getting what I think is an internal error in OpenCL.

The error is: Compilation failure ! (code = -42)
ptxas ptx input, line 50; error : State space mismatch between instruction and address in instruction ‘ld’

can anyone tell me the answer please…

Can you give the kernel code that creates this error?