§
    ŠŠtjÎ  ã                   óZ   — d dl Z ddlmZmZ g d¢Zg d¢Zd„ Zd„ Ze j        d„ ¦   «         Z	dS )	é    Né   )Úcheck_errorÚcudart)ÚstartÚstopÚprofile)ÚgpustarttimestampÚgpuendtimestampÚ
gridsize3dÚthreadblocksizeÚstreamidzenableonstart 0Úconckerneltracec                  ó`   — t          t          ¦   «                              ¦   «         ¦  «         dS )z„Starts cuda profiler data collection.

    .. warning::
        Raises CudaError in case of it is unable to start the profiler.
    N)r   r   ÚcudaProfilerStart© ó    úQ/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/torch/cuda/profiler.pyr   r      s(   € õ •‘”×*Ò*Ñ,Ô,Ñ-Ô-Ð-Ð-Ð-r   c                  ó`   — t          t          ¦   «                              ¦   «         ¦  «         dS )z‚Stops cuda profiler data collection.

    .. warning::
        Raises CudaError in case of it is unable to stop the profiler.
    N)r   r   ÚcudaProfilerStopr   r   r   r   r      s(   € õ •‘”×)Ò)Ñ+Ô+Ñ,Ô,Ð,Ð,Ð,r   c               #   ór   K  — 	 t          ¦   «          dV — t          ¦   «          dS # t          ¦   «          w xY w)a™  
    Enable profiling.

    Context Manager to enabling profile collection by the active profiling tool from CUDA backend.
    Example:
        >>> # xdoctest: +REQUIRES(env:TORCH_DOCTEST_CUDA)
        >>> import torch
        >>> model = torch.nn.Linear(20, 30).cuda()
        >>> inputs = torch.randn(128, 20).cuda()
        >>> with torch.cuda.profiler.profile() as prof:
        ...     model(inputs)
    N)r   r   r   r   r   r   r   &   s8   è è € ðÝ‰ŒˆØˆˆˆå‰Œˆˆˆø�‰Œˆˆøøøs   „& ¦6)
Ú
contextlibÚ r   r   Ú__all__ÚDEFAULT_FLAGSr   r   Úcontextmanagerr   r   r   r   ú<module>r      sŽ   ðà Ð Ð Ð à !Ð !Ð !Ð !Ð !Ð !Ð !Ð !ð 'Ð
&Ð
&€ðð ð €ð.ð .ð .ð-ð -ð -ð Ôðð ñ Ôðð ð r   