+
    ˜°³jÂ  ã                   ó"   € ^ RI t  ! R R4      tR# )é    Nc                   ó¦   a € ] tR t^t o RtRV 3R lR lltV 3R lR ltV 3R lR ltV 3R lR	 ltV 3R
 lR lt	V 3R lR lt
V 3R lR ltRtV tR# )ÚEventa)  Wrapper around an MPS event.

MPS events are synchronization markers that can be used to monitor the
device's progress, to accurately measure timing, and to synchronize MPS streams.

Args:
    enable_timing (bool, optional): indicates if the event should measure time
        (default: ``False``)
c                ó$   <€ V ^8„  d   QhRS[ RR/# )é   Úenable_timingÚreturnN©Úbool)ÚformatÚ__classdict__s   "€ÚP/home/luca/screen-checking/.venv/lib/python3.14/site-packages/torch/mps/event.pyÚ__annotate__ÚEvent.__annotate__   s   ø€ ÷ Cñ C¡dð C°tñ Có    c                óN   € \         P                  P                  V4      V n        R # )N)ÚtorchÚ_CÚ_mps_acquireEventÚ_Event__eventId)Úselfr   s   &&r   Ú__init__ÚEvent.__init__   s   € ÜŸ™×3Ñ3°MÓBˆŽr   c                ó   <€ V ^8„  d   QhRR/# ©r   r   N© )r   r   s   "€r   r   r      s   ø€ ÷ 7ñ 7˜ñ 7r   c                óÂ   € \        \        P                  R 4      '       d?   V P                  ^ 8”  d,   \        P                  P	                  V P                  4       R# R# R# )Ú_mps_releaseEventN)Úhasattrr   r   r   r   ©r   s   &r   Ú__del__ÚEvent.__del__   s>   € ä”5—8‘8Ð0×1Ò1°d·n±nÀqÔ6HÜ�H‰H×&Ñ& t§~¡~Ö6ñ 7IÑ1r   c                ó   <€ V ^8„  d   QhRR/# r   r   )r   r   s   "€r   r   r      s   ø€ ÷ 2ñ 2˜ñ 2r   c                óX   € \         P                  P                  V P                  4       R# )z(Records the event in the default stream.N)r   r   Ú_mps_recordEventr   r   s   &r   ÚrecordÚEvent.record   s   € ä�‰×!Ñ! $§.¡.Ö1r   c                ó   <€ V ^8„  d   QhRR/# r   r   )r   r   s   "€r   r   r      s   ø€ ÷ 3ñ 3�dñ 3r   c                óX   € \         P                  P                  V P                  4       R# )zJMakes all future work submitted to the default stream wait for this event.N)r   r   Ú_mps_waitForEventr   r   s   &r   ÚwaitÚ
Event.wait   s   € ä�‰×"Ñ" 4§>¡>Ö2r   c                ó    <€ V ^8„  d   QhRS[ /# )r   r   r	   )r   r   s   "€r   r   r      s   ø€ ÷ 8ñ 8‘tñ 8r   c                óT   € \         P                  P                  V P                  4      # )zCReturns True if all work currently captured by event has completed.)r   r   Ú_mps_queryEventr   r   s   &r   ÚqueryÚEvent.query   s   € ä�x‰x×'Ñ'¨¯©Ó7Ð7r   c                ó   <€ V ^8„  d   QhRR/# r   r   )r   r   s   "€r   r   r   #   s   ø€ ÷ 7ñ 7˜Tñ 7r   c                óX   € \         P                  P                  V P                  4       R# )z‘Waits until the completion of all work currently captured in this event.
This prevents the CPU thread from proceeding until the event completes.
N)r   r   Ú_mps_synchronizeEventr   r   s   &r   ÚsynchronizeÚEvent.synchronize#   s   € ô 	�‰×&Ñ& t§~¡~Ö6r   c                ó$   <€ V ^8„  d   QhRRRS[ /# )r   Ú	end_eventr   r   )Úfloat)r   r   s   "€r   r   r   )   s   ø€ ÷ Vñ V gð V±%ñ Vr   c                ój   € \         P                  P                  V P                  VP                  4      # )zmReturns the time elapsed in milliseconds after the event was
recorded and before the end_event was recorded.
)r   r   Ú_mps_elapsedTimeOfEventsr   )r   r7   s   &&r   Úelapsed_timeÚEvent.elapsed_time)   s%   € ô �x‰x×0Ñ0°·±À×ATÑATÓUÐUr   )Ú	__eventIdN)F)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r    r%   r*   r/   r4   r;   Ú__static_attributes__Ú__classdictcell__)r   s   @r   r   r      sT   ø‡ € ñ÷Cò C÷7ð 7÷
2ð 2÷3ð 3÷8ð 8÷7ð 7÷Vö Vr   r   )r   r   r   r   r   Ú<module>rE      s   ðÛ ÷)Vó )Vr   