o
    ´^iT  ã                   @   sn   d dl mZ d dlmZ dgZdd„ Zde_edd„ ƒZeddd	„ƒZed
d„ ƒZ	edd„ ƒZ
edd„ ƒZdS )é    )Údriver)Úconstexpr_functionÚcurrent_targetc                  C   s&   zt j} W |  ¡ S  ty   Y d S w )N)r   ÚactiveÚRuntimeErrorÚget_current_target)Úactive_driver© r	   úV/var/www/html/RAG/RAG_venv/lib/python3.10/site-packages/triton/language/target_info.pyr      s   ýþTc                  C   ó   t ƒ } | d uo| jdkS )NÚcuda©r   Úbackend©Útargetr	   r	   r
   Úis_cuda   ó   r   c                 C   s>   t ƒ }|du s|jdkrdS t|jtƒsJ ‚|j| d | kS )zÞ
    Determines whether we have compute capability >= (major, minor) and
    returns this as a constexpr boolean. This can be used for guarding
    inline asm implementations that require a certain compute capability.
    Nr   Fé
   )r   r   Ú
isinstanceÚarchÚint)ÚmajorÚminorr   r	   r	   r
   Úcuda_capability_geq   s
   r   c                  C   r   )NÚhipr   r   r	   r	   r
   Úis_hip'   r   r   c                  C   r   )NÚgfx942©r   r   r   r	   r	   r
   Úis_hip_cdna3-   r   r   c                  C   r   )NÚgfx950r   r   r	   r	   r
   Úis_hip_cdna43   r   r    N)r   )Útriton.runtimer   Útriton.runtime.jitr   Ú__all__r   Ú__triton_builtin__r   r   r   r   r    r	   r	   r	   r
   Ú<module>   s    	


