+
    ړLjX                        ^ RI Ht ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
t
^ RIt^ RIt^ RIHt ^RIHt ^RIHt R R ltR R	 lt]P*                  R
 R l4       tR R ltRR R lltR# )    )annotationsN)
ModuleType)get_cache_manager)knobsc               8    V ^8  d   QhRRRRRRRRRRRRR	RR
R/# )   namestrsrcsrcdirlibrary_dirsz	list[str]include_dirs	librariesccflagsreturn )formats   "@/app/.local/lib/python3.14/site-packages/triton/runtime/build.py__annotate__r      sH       3  9 T] js "%    c                   \         P                  P                  ;p'       d   V! WW#WE4      # \        P                  ! R 4      p\
        P                  P                  VRP                  WR7      4      p	\
        P                  P                  R4      p
V
fD   \        P                  ! R4      p\        P                  ! R4      pVe   TMTp
V
f   \        R4      h\        P                  ! 4       pVR8X  d   Rp\        P                  ! VR	7      R
,          p\         P                  P                   pWBV.VO,           pWRRRRRV	.pTV Uu. uF  p\#        V4      NK  	  up,          pTV Uu. uF  pRV 2NK
  	  up,          pTV Uu. uF  pVf   K	  RV 2NK  	  up,          pVP%                  V4       \&        P(                  ! V\&        P*                  R7       V	# u upi u upi u upi )
EXT_SUFFIXz{name}{suffix})r	   suffixCCclanggcczeFailed to find C compiler. Please specify via CC environment variable or set triton.knobs.build.impl.posix_localposix_prefix)schemeincludez-O3z-sharedz-fPICz
-Wno-psabiz-oz-Lz-I)stdout)r   buildimpl	sysconfigget_config_varospathjoinr   environgetshutilwhichRuntimeErrorget_default_scheme	get_pathsbackend_dirs_library_flagextend
subprocess
check_callDEVNULL)r	   r   r   r   r   r   r   r#   r   soccr   r   r   py_include_dircustom_backend_dirscc_cmdlibdirs   &&&&&&&            r   _buildr=      s   {{tDv\MM%%l3F	f.5545O	PB		B	zW%ll5!OS:wy y))+F ((7	BN++22>"P<O"PPLui,bIF
Y7Yc}S!Y77F
\2\cC5z\22F
\E\cSzC5z\EEF
MM'&););<I 82Es   	G+G"G'	G'c                    V ^8  d   QhRRRR/# )r   r;   r
   r   r   )r   s   "r   r   r   4   s      s s r   c                ~    \         P                  ! R V 4      '       g   V P                  R4      '       d   RV  2# RV  2# )z\.so(\.\d+)*$z.az-l:z-l)researchendswith)r;   s   &r   r1   r1   4   s:    	yy!3''3<<+=+=SE{u:r   c                   V ^8  d   QhRR/# )r   r   r
   r   )r   s   "r   r   r   <   s     < <c <r   c                 ^    ^ RI Hp HpHp RP	                  V ! 4       V! 4       .V! 4       O4      # )r   machinesystemarchitecture,)platformrF   rG   rH   r(   rE   s      r   platform_keyrK   ;   s'    6688WY:<>:;;r   c               $    V ^8  d   QhRRRRRR/# )r   r	   r
   r'   r   r   r   )r   s   "r   r   r   A   s!       C J r   c                   \         P                  P                  W4      pV'       d   VP                  '       g   \	        R V  RV 24      h\         P                  P                  V4      pVP                  P                  V4       V# )zFailed to load newly compiled z from )	importlibutilspec_from_file_locationloaderr-   module_from_specexec_module)r	   r'   specmods   &&  r   _load_module_from_pathrV   A   se    >>11$=Dt{{{;D6vNOO
..
)
)$
/CKKC Jr   c               4    V ^8  d   QhRRRRRRRRRRRRR	R
/# )r   r   r
   r	   r   zlist[str] | Noner   r   r   r   r   r   )r   s   "r   r   r   J   sB     4 4 4C 4?O 4*:4N^4%54AK4r   c                   \         P                  ! V \        4       ,           P                  R 4      4      P	                  4       p\        V4      p\        P                  ! R4      pVP                  V V 24      p	V	e    \        W4      # \         P"                  ! 4       ;_uu_ 4       p\$        P&                  P)                  WR,           4      p\+        VR4      ;_uu_ 4       pVP-                  V 4       RRR4       \/        YY;'       g    . T;'       g    . T;'       g    . T;'       g    . 4      p\+        VR4      ;_uu_ 4       pVP1                  VP3                  4       V V 2RR	7      p	RRR4       RRR4       \        W4      #   \        \        3 d4    \        P                  ! \        4      p
T
P                  RT R24        ELBi ; i  + '       g   i     L; i  + '       g   i     L}; i  + '       g   i     L; i)
zutf-8r   Nz$Triton cache error: compiled module z.so could not be loadedz.cwrbT)binary)hashlibsha256rK   encode	hexdigestr   r$   r%   get_filerV   r-   ImportErrorlogging	getLogger__name__warningtempfileTemporaryDirectoryr&   r'   r(   openwriter=   putread)r   r	   r   r   r   r   keycacher   
cache_pathlogtmpdirsrc_pathfr6   s   &&&&&&         r   compile_module_from_srcrs   J   s    ..#.66w?
@
J
J
LCc"E%%l3F4& 12J	^)$;;
 
	$	$	&	&&77<<t4(C  AGGCL !DF,>,>B@R@RPRT]TcTcacelererprs"d^^q1668vfX->tLJ  
' "$33 k* 	^##H-CKK>tfD[\]	^ !  ^ 
'	&sa   >
F &;G5!G	3!G5
G5 
G5+G5'G"	-G5A GGGG5"G2-G55H	)NNNN)
__future__r   	functoolsr\   importlib.utilrN   rb   r&   r+   r3   r$   rf   r@   typesr   rm   r    r   r=   r1   	lru_cacherK   rV   rs   r   r   r   <module>rz      sc    "     	     	  $ @ < <
4 4r   