I have a kernel that uses a texture. But I want to run that kernel in multiple streams. I suppose that I have to have one different texture (and bind in the CPU) for each stream. But in the kernel the name of the texture is hard coded. Have I to repeat the kernel and run one for each stream (with each texture hard coded?)? May I declare an array of textures and use that way in each stream?
Someone help on this?
texture<uchar, cudaTextureType2D, cudaReadModeElementType> tex1(false, cudaFilterModePoint, cudaAddressModeClamp);