
    
9j                        S SK Jr  S SKrS SKJrJr  \" 5       (       a!  S SKr\" \R                  " SS5      5      r	S r
OS r\r
S rg)	    )annotationsN)is_availablecheck_availableCUPY_TEST_GPU_LIMITz-1c                 B    [         R                  R                  " U 0 UD6$ )N)pytestmarkslowargskwargss     L/home/wildlama/miniconda3/lib/python3.13/site-packages/cupy/testing/_attr.pyr
   r
      s    {{000    c                     [        S5         e)Nzpytest attributesr   r   s     r   _dummy_callabler      s    +,ur   c                :   ^  [        S5        ST :  d   eU 4S jnU$ )ac  Decorator to indicate number of GPUs required to run the test.

Tests can be annotated with this decorator (e.g., ``@multi_gpu(2)``) to
declare number of GPUs required to run. When running tests, if
``CUPY_TEST_GPU_LIMIT`` environment variable is set to value greater
than or equals to 0, test cases that require GPUs more than the limit will
be skipped.
zmulti_gpu attribute   c                   > [         R                  R                  S[        s=:*  =(       a    T:  Os  SR	                  T5      S9" [         R                  R                  U 5      5      $ )Nr   z{} GPUs required)reason)r   r	   skipif
_gpu_limitformat	multi_gpu)fgpu_nums    r   _wrappermulti_gpu.<locals>._wrapper(   sV    {{!!%%g%%,,W5 " 7 %%a(* 	*r   r   )r   r   s   ` r   r   r      s(     )* w;;*
 Or   )
__future__r   oscupy.testing._pytest_implr   r   r   intgetenvr   r
   r   r    r   r   <module>r%      sI    " 	 D >>RYY4d;<J1 Dr   