Ë
    *êñiÎ  ã                   ó\   — 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	y)	é    Né   )Úcheck_errorÚcudart)ÚstartÚstopÚprofile)ÚgpustarttimestampÚgpuendtimestampÚ
gridsize3dÚthreadblocksizeÚstreamidzenableonstart 0Úconckerneltracec                  óF   — t        t        «       j                  «       «       y)z„Starts cuda profiler data collection.

    .. warning::
        Raises CudaError in case of it is unable to start the profiler.
    N)r   r   ÚcudaProfilerStart© ó    úU/var/www/pod-logistic/pod-ai/venv/lib/python3.12/site-packages/torch/cuda/profiler.pyr   r      s   € ô ”“×*Ñ*Ó,Õ-r   c                  óF   — t        t        «       j                  «       «       y)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               #   ó\   K  — 	 t        «        d–— t        «        y# t        «        w xY w­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   &   s   è ø€ ðÜŒÛä�øŒ�üs   ‚,„ ’,�)©,)
Ú
contextlibÚ r   r   Ú__all__ÚDEFAULT_FLAGSr   r   Úcontextmanagerr   r   r   r   ú<module>r      s=   ðã ç !ò '€ò€ò.ò-ð ×Ññó ñr   