How to unbind a texture using driver API?

Hi!

Is there an equivalent to cudaUnbindTexture() in the driver API? If not, is it sufficient to just cuMemFree() the device memory a given CUtexref is bound to (via cuTexRefSetAddress())?

Thanks!

PS: I can’t use the forum search with neither Safari not Firefox, so please bear with me if this question got answered earlier…

Hi!

Is there an equivalent to cudaUnbindTexture() in the driver API? If not, is it sufficient to just cuMemFree() the device memory a given CUtexref is bound to (via cuTexRefSetAddress())?

Thanks!

PS: I can’t use the forum search with neither Safari not Firefox, so please bear with me if this question got answered earlier…

The forum search never works… We all use “google” with site:http://forums.nvidia.com

The forum search never works… We all use “google” with site:http://forums.nvidia.com

Thanks for the hint :rolleyes:

I found a topic that suggests to call cuTexRefSetAddress() with a NULL pointer to unbind a given texture - an idea I already contemplated myself (and didn’t “dare” to try)… Is this the only and possibly recommended way of doing it?

Cheers

Thanks for the hint :rolleyes:

I found a topic that suggests to call cuTexRefSetAddress() with a NULL pointer to unbind a given texture - an idea I already contemplated myself (and didn’t “dare” to try)… Is this the only and possibly recommended way of doing it?

Cheers