ó
    EñiÎ  ã                   ó\   • S SK r SSKJrJr  / SQr/ SQrS rS r\ R                  S 5       r	g)	é    Né   )Úcheck_errorÚcudart)ÚstartÚstopÚprofile)ÚgpustarttimestampÚgpuendtimestampÚ
gridsize3dÚthreadblocksizeÚstreamidzenableonstart 0Úconckerneltracec                  óF   • [        [        5       R                  5       5        g)zxStarts cuda profiler data collection.

.. warning::
    Raises CudaError in case of it is unable to start the profiler.
N)r   r   ÚcudaProfilerStart© ó    ÚP/home/mande/repo/quber/.venv/lib/python3.13/site-packages/torch/cuda/profiler.pyr   r      s   € ô ”“×*Ñ*Ó,Õ-r   c                  óF   • [        [        5       R                  5       5        g)zvStops 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               #   ó\   #   •  [        5         Sv •  [        5         g! [        5         f = f7f)aq  
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   &   s   é € ðÜŒÛä�øŒ�üs   ‚,„ ’,�)©,)
Ú
contextlibÚ r   r   Ú__all__ÚDEFAULT_FLAGSr   r   Úcontextmanagerr   r   r   r   Ú<module>r      s=   ðã ç !ò '€ò€ò.ò-ð ×Ññó ñr   