I’m using CUDA in a static library. This library is either used by an executable, or by a Direct Show filter.
With the executable everything goes fine.
With the filter, I can set the device, see its properties, allocate memory and transfer data to it, but it fails when it comes to cudaBindTextureToArray with “invalid texture reference”, cudaMemcpyToSymbol with “invalid device symbol”, and kernel launch with “invalid device function”.
The texture reference and the constant data (for which I call cudaMemcpyToSymbol ) are global variables.
Any sugestions, hints, ideas?