CUDA 12.6 compiler mismatch error

texture references were deprecated and are now no longer supported in recent CUDA versions. You should now use texture objects. See here and here and here You can find many codes on various forums that show how to use texture objects.