a
    Þñh+  ã                   @   s^   zd dl mZ W n( ey8   G dd„ deƒZeƒ ZY n0 g d¢Zdd„ Zdd„ Zd	d
„ ZdS )é    )Ú_nvtxc                   @   s$   e Zd Zedd„ ƒZeZeZeZdS )Ú	_NVTXStubc                  O   s   t dƒ‚d S )NzANVTX functions not installed. Are you sure you have a CUDA build?)ÚRuntimeError)ÚargsÚkwargs© r   úO/home/yuhw/wc/uboone-dl-vtx/venv/lib/python3.9/site-packages/torch/cuda/nvtx.pyÚ_fail   s    z_NVTXStub._failN)Ú__name__Ú
__module__Ú__qualname__Ústaticmethodr	   Ú
rangePushAÚrangePopÚmarkAr   r   r   r   r      s
   
r   )Ú
range_pushÚ	range_popÚmarkc                 C   s
   t  | ¡S )zÃ
    Pushes a range onto a stack of nested range span.  Returns zero-based
    depth of the range that is started.

    Arguments:
        msg (string): ASCII message to associate with range
    )r   r   ©Úmsgr   r   r   r      s    r   c                   C   s   t  ¡ S )zz
    Pops a range off of a stack of nested range spans.  Returns the
    zero-based depth of the range that is ended.
    )r   r   r   r   r   r   r      s    r   c                 C   s
   t  | ¡S )z—
    Describe an instantaneous event that occurred at some point.

    Arguments:
        msg (string): ASCII message to associate with the event.
    )r   r   r   r   r   r   r   %   s    r   N)	Ztorch._Cr   ÚImportErrorÚobjectr   Ú__all__r   r   r   r   r   r   r   Ú<module>   s   	