I am working with Cuda driver api, now i have a problem about Cuda texture object creation, it always return CUDA_ERROR_INVALUD_VALUE.
I found function cuTexObjectCreate is wrapped by macro :
#if __CUDA_API_VERSION >= 5000
...function decl...
#endif
And my Cuda context created by cuCtxCreate_v2 always return api version 3020. Does that means I should create a high version context? and which function should I call? Or it's something else? That's the sample code:
