is a texture binded? how to chek it on the device code?

Hi all,

is there a way to know if a texture is bound during the excution of a kernel?
Or to check if the corresponding cudaArray is NULL, or something equivalent?

My goal is to adjust the code when the texture is not valid.

I could just add a boolean on the device memory but if I can directly use what is here, maybe it is better.

Thanks,

– pium

Hi all,

is there a way to know if a texture is bound during the excution of a kernel?
Or to check if the corresponding cudaArray is NULL, or something equivalent?

My goal is to adjust the code when the texture is not valid.

I could just add a boolean on the device memory but if I can directly use what is here, maybe it is better.

Thanks,

– pium