We know that in OpenGL, texture is represented by a number. It seems natural to me that texture can be use as a function parameter.
So i did the same thing in CUDA
global void kernel(texture<float, 2> tex);
So that my kernel will give different result with different texture input (I hope so)
There’s no compile error, or linking error but
Segment fault (core dump)
Is this a bug with NVCC.
If i don’t use texture as the input parameter then everything is fine.