-
Hello everyone! Recent CUDA versions (starting at CUDA 11.3 if I'm not wrong) deprecated texture references. I have been running CUDA 11.2 and PyCUDA for a while and have several working kernels using texture references. Recently I upgraded to CUDA 12.2.0 and I'm getting an error when compiling an existing kernel that was using texture references. The solution is to refactor the texture reference into a texture object. I've been looking into the PyCUDA documentation but haven't been able to find how to build a texture object (https://documen.tician.de/pycuda/driver.html#pycuda.driver.TextureReference). Is there any way to build a texture object and pass it to the kernel call in PyCUDA? Thanks! Gerard |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
That functionality isn't currently wrapped. Contributions are welcome! |
Beta Was this translation helpful? Give feedback.
-
Looking into a bit, this should be mostly a straightforward wrapping exercise. Texture objects are simply passed to kernels by value, so giving them the buffer interface should allow the struct packer to do the right thing automatically. |
Beta Was this translation helpful? Give feedback.
That functionality isn't currently wrapped. Contributions are welcome!