
    io                     z    U d dl mZmZ ddlmZmZ i Zeeeege	f   f   e
d<   dedeege	f   ddfd	Zd
ede	fdZy)    )AnyCallable   )*get_minimal_required_cuda_ver_from_ptx_verget_ptx_ver_handle_getterstgetterreturnNc                     |t         | <   y )N)r   )r	   r
   s     f/home/obispo/Crisostomo_bridge/mision_env/lib/python3.12/site-packages/cuda/bindings/utils/__init__.py_add_cuda_native_handle_getterr      s    OA    objc                     t        |       }	 t        |   |       S # t        $ r t        dt	        |      z         dw xY w)zReturns the address of the provided CUDA Python object as a Python int.

    Parameters
    ----------
    obj : Any
        CUDA Python object

    Returns
    -------
    int : The object address.
    zUnknown type: N)typer   KeyError	TypeErrorstr)r   obj_types     r   get_cuda_native_handler      sK     CyHDx(-- D(3x=89tCDs    "=)typingr   r   
_ptx_utilsr   r   r   dictr   int__annotations__r   r    r   r   <module>r      sj    !   O46dHcUCZ001 6 d  HcUCZ4H  T  D D Dr   