
    9iT                         S SK Jr  S SKJr  S/rS rS\l        \S 5       r\SS j5       r\S 5       r	\S	 5       r
\S
 5       rg)    )driver)constexpr_functioncurrent_targetc                  d     [         R                  n U R                  5       $ ! [         a     g f = f)N)r   activeRuntimeErrorget_current_target)active_drivers    [/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/triton/language/target_info.pyr   r      s5     ++--  s   " 
//Tc                  J    [        5       n U S L=(       a    U R                  S:H  $ )Ncudar   backendtargets    r   is_cudar      s#    F:&..F"::    c                     [        5       nUb  UR                  S:w  a  g[        UR                  [        5      (       d   eUR                  U S-  U-   :  $ )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.
r   F
   )r   r   
isinstancearchint)majorminorr   s      r   cuda_capability_geqr      sN     F~61fkk3'''';;%"*u,,,r   c                  J    [        5       n U S L=(       a    U R                  S:H  $ )Nhipr   r   s    r   is_hipr   '   s#    F9&..E"99r   c                  J    [        5       n U S L=(       a    U R                  S:H  $ )Ngfx942r   r   r   s    r   is_hip_cdna3r"   -   #    F9&++"99r   c                  J    [        5       n U S L=(       a    U R                  S:H  $ )Ngfx950r!   r   s    r   is_hip_cdna4r&   3   r#   r   N)r   )triton.runtimer   triton.runtime.jitr   __all__r   __triton_builtin__r   r   r   r"   r&    r   r   <module>r,      s    ! 1
. %) ! ; ;
 
- 
- : :
 : :
 : :r   