I stumbled on a strange problem.
I have two .cu files, each of them compiled with different nvcc settings. I am succesfully using two texture objects in one of them and just tried to add a third one in another file.
As soon as I bind a new texture in the second file, even if I don’t use it at all in my kernels, the program crashes.
Any idea why?
Is there some strange limitation that you can use textures in only one file?
Is there some other strange limitation on other global device variables (const, device, etc.)?