It seems that I’m facing a problem where NVCC fails to recognize which type of memory to bind to the variable: either constant or global.
The code below:
works fine in EMU mode and crashes on a real hardware. When I comment either of the “if” statements it works OK.
I realize that it’s impossible to perform this binding in compile time, but what I vote for is to add error message if such problem is detected.