a
    ‘º”hI	  ã                   @   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< eegdf ddœdd„Zeegdf ddœdd„Zeeegdf ddœd d!„Zeeegdf ddœd"d#„Zeegdf ddœd$d%„Zeegdf ddœd&d'„Zeegdf ddœd(d)„Zeg df ddœd*d+„Zeegdf ddœd,d-„Zeegdf ddœd.d/„ZdS )0é    )ÚCallable)ÚCallbackRegistryzCUDA event creationzCallbackRegistry[int]ÚEventCreationCallbackszCUDA event deletionÚEventDeletionCallbackszCUDA event recordzCallbackRegistry[int, int]ÚEventRecordCallbackszCUDA event waitÚEventWaitCallbackszCUDA memory allocationÚMemoryAllocationCallbackszCUDA memory deallocationÚMemoryDeallocationCallbackszCUDA stream creationÚStreamCreationCallbackszCUDA device synchronizationzCallbackRegistry[[]]ÚDeviceSynchronizationCallbackszCUDA stream synchronizationÚStreamSynchronizationCallbackszCUDA event synchronizationÚEventSynchronizationCallbacksN)ÚcbÚreturnc                 C   s   t  | ¡ d S ©N)r   Úadd_callback©r   © r   úC/var/www/auris/lib/python3.9/site-packages/torch/cuda/_gpu_trace.pyÚ$register_callback_for_event_creation$   s    r   c                 C   s   t  | ¡ d S r   )r   r   r   r   r   r   Ú$register_callback_for_event_deletion(   s    r   c                 C   s   t  | ¡ d S r   )r   r   r   r   r   r   Ú"register_callback_for_event_record,   s    r   c                 C   s   t  | ¡ d S r   )r   r   r   r   r   r   Ú register_callback_for_event_wait0   s    r   c                 C   s   t  | ¡ d S r   )r   r   r   r   r   r   Ú'register_callback_for_memory_allocation4   s    r   c                 C   s   t  | ¡ d S r   )r	   r   r   r   r   r   Ú)register_callback_for_memory_deallocation8   s    r   c                 C   s   t  | ¡ d S r   )r
   r   r   r   r   r   Ú%register_callback_for_stream_creation<   s    r   c                 C   s   t  | ¡ d S r   )r   r   r   r   r   r   Ú,register_callback_for_device_synchronization@   s    r   c                 C   s   t  | ¡ d S r   )r   r   r   r   r   r   Ú,register_callback_for_stream_synchronizationD   s    r   c                 C   s   t  | ¡ d S r   )r   r   r   r   r   r   Ú+register_callback_for_event_synchronizationH   s    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>   sN   ÿÿÿÿÿÿÿÿÿ