
    Ϧi                     H    S SK Jr  SSKJr   " S S\5      r " S S\5      rg)	   )TritonError    )Optionalc                   :    \ rS rSrSS\\   4S jjrS\4S jrSrg)	InterpreterError   Nerror_messagec                     Xl         g Nr	   )selfr	   s     T/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/triton/runtime/errors.py__init__InterpreterError.__init__   s    *    returnc                 ,    U R                   =(       d    S$ )N r   r   s    r   __str__InterpreterError.__str__
   s    !!'R'r   r   r   )	__name__
__module____qualname____firstlineno__r   strr   r   __static_attributes__ r   r   r   r      s    +hsm +( (r   r   c                   .    \ rS rSrS rS\4S jrS rSrg)OutOfResources   c                 (    Xl         X l        X0l        g r   )requiredlimitname)r   r#   r$   r%   s       r   r   OutOfResources.__init__   s     
	r   r   c                 V    SU R                    SU R                   SU R                   S3$ )Nzout of resource: z, Required: z, Hardware limit: z0. Reducing block sizes or `num_stages` may help.)r%   r#   r$   r   s    r   r   OutOfResources.__str__   s9    "499+\$--HZ[_[e[eZf  gW  X  	Xr   c                 ^    [        U 5      U R                  U R                  U R                  44$ r   )typer#   r$   r%   r   s    r   
__reduce__OutOfResources.__reduce__   s$    T
T]]DJJ		BCCr   )r$   r%   r#   N)	r   r   r   r   r   r   r   r+   r   r   r   r   r    r       s    
X XDr   r    N)errorsr   typingr   r   r    r   r   r   <module>r/      s%      ({ (D[ Dr   