Cuda: deprecated tex2D function
It seems that Cuda 11 deprecates the tex2D function.
UserWarning: The CUDA compiler succeeded, but said the following:
kernel.cu(111): warning: function "tex2D(texture<T, 2, cudaReadModeElementType>, float, float) [with T=float]"
/usr/local/cuda-11.4/bin/../targets/x86_64-linux/include/texture_fetch_functions.h(198): here was declared deprecated
kernel.cu(112): warning: function "tex2D(texture<T, 2, cudaReadModeElementType>, float, float) [with T=float]"
/usr/local/cuda-11.4/bin/../targets/x86_64-linux/include/texture_fetch_functions.h(198): here was declared deprecated
If I understood correctly:
- Texture references were "the way" of using textures back then
- From Kepler, "bindless textures" (texture objects) can be used
- From Cuda 11.3, texture references are deprecated
The problem is that bindless textures are not supported by pycuda yet.
Edited by Pierre Paleo