I just upgraded to cuda 2.3 and encountered a problem.
I am writing a program where different kernels uses the same data source, which in this case is
stored in textures for cache performance.
Previuosly(cuda 2.1) i could declare the textures (1d,2d and 3d) in a seperat file (.cuh) and
then include this file in the every kernel file. This way i could have on .cu file pr kernel and still use
the textures. But this does not work any longer with cuda 2.3, and to get my program up and running i have
to paste all things into the same file(now its about 2000 lines of code Doh!!).
Is there a trick or a “right” way to do this, so i don’t have to battle with one giant .cu file that takes a long time to compile and
is very difficult to maintain?
All help is very appriciated