Okay. So this god foresaken “invalid texture reference” plagues me again.
This time, for reasons that make no sense. So I’m aware that texture references cannot be shared. Thus, I have a giant headache of a .cu file that includes all the other .cu files containing my device code. I have one texture reference that gets used quite heavily throughout all of them. This all works great until I add one tiny innocent line to one of my kernels:
__shared__ int sizes[512];
Dong this causes all hell to break loose in the form of an “invalid texture reference” miles before this code is ever reached.