The following is taken from cuda_runtime_api.h, and is in IMHO wrong, as it renders the function completely useless:
extern __host__ cudaError_t CUDARTAPI cudaGetTextureReference(const struct textureReference **texref, const char *symbol);
(Note the “const” before “struct textureReference **”)
By the way, the manual does not contain that error.
I just fixed it by removing the “const”; is there anything I should be aware of?