o
    vZŽh3	  ã                   @   sØ  U d dl mZ d dlmZ edƒZded< edƒZded< edƒZd	ed
< edƒZd	ed< edƒZ	ded< edƒZ
ded< edƒZded< edƒZded< edƒZded< edƒZded< deegdf ddfdd„Zdeegdf ddfdd „Zdeeegdf ddfd!d"„Zdeeegdf ddfd#d$„Zdeegdf ddfd%d&„Zdeegdf ddfd'd(„Zdeegdf ddfd)d*„Zdeg df ddfd+d,„Zdeegdf ddfd-d.„Zdeegdf ddfd/d0„ZdS )1é    )ÚCallable)ÚCallbackRegistryzXPU event creationzCallbackRegistry[int]ÚEventCreationCallbackszXPU event deletionÚEventDeletionCallbackszXPU event recordzCallbackRegistry[int, int]ÚEventRecordCallbackszXPU event waitÚEventWaitCallbackszXPU memory allocationÚMemoryAllocationCallbackszXPU memory deallocationÚMemoryDeallocationCallbackszXPU stream creationÚStreamCreationCallbackszXPU device synchronizationzCallbackRegistry[[]]ÚDeviceSynchronizationCallbackszXPU stream synchronizationÚStreamSynchronizationCallbackszXPU event synchronizationÚEventSynchronizationCallbacksÚcbNÚreturnc                 C   ó   t  | ¡ d S ©N)r   Úadd_callback©r   © r   úC/var/www/auris/lib/python3.10/site-packages/torch/xpu/_gpu_trace.pyÚ$register_callback_for_event_creation    ó   r   c                 C   r   r   )r   r   r   r   r   r   Ú$register_callback_for_event_deletion$   r   r   c                 C   r   r   )r   r   r   r   r   r   Ú"register_callback_for_event_record(   r   r   c                 C   r   r   )r   r   r   r   r   r   Ú register_callback_for_event_wait,   r   r   c                 C   r   r   )r   r   r   r   r   r   Ú'register_callback_for_memory_allocation0   r   r   c                 C   r   r   )r	   r   r   r   r   r   Ú)register_callback_for_memory_deallocation4   r   r   c                 C   r   r   )r
   r   r   r   r   r   Ú%register_callback_for_stream_creation8   r   r   c                 C   r   r   )r   r   r   r   r   r   Ú,register_callback_for_device_synchronization<   r   r   c                 C   r   r   )r   r   r   r   r   r   Ú,register_callback_for_stream_synchronization@   r   r   c                 C   r   r   )r   r   r   r   r   r   Ú+register_callback_for_event_synchronizationD   r   r    )Útypingr   Ztorch._utilsr   r   Ú__annotations__r   r   r   r   r	   r
   r   r   r   Úintr   r   r   r   r   r   r   r   r   r    r   r   r   r   Ú<module>   sH    ÿÿÿÿÿÿÿ 