How to get GPU memory pointer from `Texture` Object

Thanks @rdb. I found some useful information here: OpenGL Interoperability with CUDA | 3D Game Engine Programming (3dgep.com) for how to get the device memory pointer of the OpenGL texture. I am trying to test E2E, but I am stuck by how to call text.prepare()? What parameter should I pass in for the prepared_objects? Do you have sample code for this? Also, can I use prepareNow for my case?