+
    :i;                         ^ RI HtHtHt ^ RIHt ^ RIHtHt ^ RI	H
t
 ^ RIHtHtHt ^ RItR tR tR	 tR
 tR tR tR tR tR tR tR tR t^t^t^t^t ^t!^t"^t#^t$^t%^t&^t'^%t(^)t)^+t*]! ]RR7      R 4       t+]! ]RR7      R 4       t,]! ]RR7      R 4       t-]! ]RR7      R 4       t.]! ]RR7      R 4       t/]! ]RR7      R 4       t0]! ]RR7      R 4       t1]! ]RR7      R 4       t2]! ]RR7      R 4       t3]! ]RR7      R 4       t4]! ]RR7      R  4       t5]! ]RR7      R! 4       t6]! ]RR7      R" 4       t7]! ]RR7      R# 4       t8]! R$4       ! R% R&]4      4       t9]:R'8X  d   ]Pv                  ! 4        R# R# )(    )cudanjittypes)TypingError)overloadoverload_attribute)typeof)CUDATestCaseskip_on_cudasimunittestNc                      R # N r       c/var/www/html/photoedit/myenv/lib/python3.14/site-packages/numba/cuda/tests/cudapy/test_overload.pygeneric_func_1r          r   c                      R # r   r   r   r   r   cuda_func_1r      r   r   c                      R # r   r   r   r   r   generic_func_2r      r   r   c                      R # r   r   r   r   r   cuda_func_2r      r   r   c                      R # r   r   r   r   r   generic_calls_genericr      r   r   c                      R # r   r   r   r   r   generic_calls_cudar      r   r   c                      R # r   r   r   r   r   cuda_calls_genericr   #   r   r   c                      R # r   r   r   r   r   cuda_calls_cudar!   '   r   r   c                      R # r   r   r   r   r   target_overloadedr#   +   r   r   c                      R # r   r   r   r   r   generic_calls_target_overloadedr%   /   r   r   c                      R # r   r   r   r   r   cuda_calls_target_overloadedr'   3   r   r   c                      R # r   r   r   r   r   )target_overloaded_calls_target_overloadedr)   7   r   r   generictargetc                     R  pV# )c                 8    V ^ ;;,          \         ,          uu&   R# r   N)GENERIC_FUNCTION_1xs   &r   implol_generic_func_1.<locals>.implT       	!""r   r   r2   r3   s   & r   ol_generic_func_1r7   R       #Kr   r   c                     R  pV# )c                 8    V ^ ;;,          \         ,          uu&   R# r/   )CUDA_FUNCTION_1r1   s   &r   r3   ol_cuda_func_1.<locals>.impl[       	!r   r   r6   s   & r   ol_cuda_func_1r>   Y        Kr   c                     R  pV# )c                 8    V ^ ;;,          \         ,          uu&   R# r/   )GENERIC_FUNCTION_2r1   s   &r   r3   ol_generic_func_2.<locals>.implb   r5   r   r   r6   s   & r   ol_generic_func_2rD   `   r8   r   c                     R  pV# )c                 8    V ^ ;;,          \         ,          uu&   R# r/   )CUDA_FUNCTION_2r1   s   &r   r3   ol_cuda_func.<locals>.impli   r=   r   r   r6   s   & r   ol_cuda_funcrI   g   r?   r   c                     R  pV# )c                 N    V ^ ;;,          \         ,          uu&   \        V 4       R# r/   )GENERIC_CALLS_GENERICr   r1   s   &r   r3   &ol_generic_calls_generic.<locals>.implp   s    	!%%qr   r   r6   s   & r   ol_generic_calls_genericrN   n        Kr   c                     R  pV# )c                 N    V ^ ;;,          \         ,          uu&   \        V 4       R# r/   )GENERIC_CALLS_CUDAr   r1   s   &r   r3   #ol_generic_calls_cuda.<locals>.implx   s    	!""Ar   r   r6   s   & r   ol_generic_calls_cudarT   v        Kr   c                     R  pV# )c                 N    V ^ ;;,          \         ,          uu&   \        V 4       R# r/   )CUDA_CALLS_GENERICr   r1   s   &r   r3   #ol_cuda_calls_generic.<locals>.impl   s    	!""qr   r   r6   s   & r   ol_cuda_calls_genericrZ   ~   rO   r   c                     R  pV# )c                 N    V ^ ;;,          \         ,          uu&   \        V 4       R# r/   )CUDA_CALLS_CUDAr   r1   s   &r   r3    ol_cuda_calls_cuda.<locals>.impl   s    	!Ar   r   r6   s   & r   ol_cuda_calls_cudar_      rU   r   c                     R  pV# )c                 8    V ^ ;;,          \         ,          uu&   R# r/   )GENERIC_TARGET_OLr1   s   &r   r3   *ol_target_overloaded_generic.<locals>.impl   s    	!!!r   r   r6   s   & r   ol_target_overloaded_genericrd      s    "Kr   c                     R  pV# )c                 8    V ^ ;;,          \         ,          uu&   R# r/   )CUDA_TARGET_OLr1   s   &r   r3   'ol_target_overloaded_cuda.<locals>.impl   s    	!r   r   r6   s   & r   ol_target_overloaded_cudari      s    Kr   c                     R  pV# )c                 N    V ^ ;;,          \         ,          uu&   \        V 4       R# r/   )GENERIC_CALLS_TARGET_OLr#   r1   s   &r   r3   0ol_generic_calls_target_overloaded.<locals>.impl   s    	!''!r   r   r6   s   & r   "ol_generic_calls_target_overloadedrn           Kr   c                     R  pV# )c                 N    V ^ ;;,          \         ,          uu&   \        V 4       R# r/   )CUDA_CALLS_TARGET_OLr#   r1   s   &r   r3   -ol_cuda_calls_target_overloaded.<locals>.impl   s    	!$$!r   r   r6   s   & r   ol_cuda_calls_target_overloadedrt      ro   r   c                     R  pV# )c                 N    V ^ ;;,          \         ,          uu&   \        V 4       R# r/   )!GENERIC_TARGET_OL_CALLS_TARGET_OLr#   r1   s   &r   r3   8ol_generic_calls_target_overloaded_generic.<locals>.impl   s    	!11!r   r   r6   s   & r   *ol_generic_calls_target_overloaded_genericry      ro   r   c                     R  pV# )c                 N    V ^ ;;,          \         ,          uu&   \        V 4       R# r/   )CUDA_TARGET_OL_CALLS_TARGET_OLr#   r1   s   &r   r3   5ol_generic_calls_target_overloaded_cuda.<locals>.impl   s    	!..!r   r   r6   s   & r   'ol_generic_calls_target_overloaded_cudar~      ro   r   z$Overloading not supported in cudasimc                      a  ] tR t^t o R tR tR tR tR tR t	R t
R tR	 tR
 tR tR tR tR tR tR tRtV tR# )TestOverloadc                    \         P                  ! ^\         P                  R7      p\        P                  ! V4      R,          ! V4       V P                  V^ ,          V4       R# )   dtypeN)r   r   )nponesint32r   jitassertEqualselfkernelexpectedr2   s   &&& r   check_overloadTestOverload.check_overload   s@    GGARXX&q!1x(r   c                    \         P                  ! ^\         P                  R7      p\        V4      ! V4       V P	                  V^ ,          V4       R# )r   r   N)r   r   r   r   r   r   s   &&& r   check_overload_cpuTestOverload.check_overload_cpu   s5    GGARXX&VQ1x(r   c                :    R  p\         pV P                  W4       R# )c                     \        V 4       R # r   )r   r1   s   &r   r   )TestOverload.test_generic.<locals>.kernel   s
    1r   N)r0   r   r   r   r   s   &  r   test_genericTestOverload.test_generic   s    	 &F-r   c                :    R  p\         pV P                  W4       R# )c                     \        V 4       R # r   )r   r1   s   &r   r   &TestOverload.test_cuda.<locals>.kernel   s	    Nr   N)r;   r   r   s   &  r   	test_cudaTestOverload.test_cuda   s    	 #F-r   c                P    R  p\         \        ,          pV P                  W4       R# )c                 2    \        V 4       \        V 4       R # r   )r   r   r1   s   &r   r   2TestOverload.test_generic_and_cuda.<locals>.kernel   s    1Nr   N)r0   r;   r   r   s   &  r   test_generic_and_cuda"TestOverload.test_generic_and_cuda   s!    	 &7F-r   c                P    R  p\         \        ,          pV P                  W4       R# )c                 2    \        V 4       \        V 4       R # r   )r   r   r1   s   &r   r   8TestOverload.test_call_two_generic_calls.<locals>.kernel   s    11r   N)r0   rB   r   r   s   &  r   test_call_two_generic_calls(TestOverload.test_call_two_generic_calls   s"    	 &(::F-r   c                P    R  p\         \        ,          pV P                  W4       R# )c                 2    \        V 4       \        V 4       R # r   )r   r   r1   s   &r   r   5TestOverload.test_call_two_cuda_calls.<locals>.kernel   s    NNr   N)r;   rG   r   r   s   &  r   test_call_two_cuda_calls%TestOverload.test_call_two_cuda_calls   s!    	 #_4F-r   c                P    R  p\         \        ,          pV P                  W4       R# )c                     \        V 4       R # r   )r   r1   s   &r   r   7TestOverload.test_generic_calls_generic.<locals>.kernel   s
    !!$r   N)rL   r0   r   r   s   &  r   test_generic_calls_generic'TestOverload.test_generic_calls_generic   s"    	% )+==F-r   c                P    R  p\         \        ,          pV P                  W4       R# )c                     \        V 4       R # r   )r   r1   s   &r   r   4TestOverload.test_generic_calls_cuda.<locals>.kernel   
    q!r   N)rR   r;   r   r   s   &  r   test_generic_calls_cuda$TestOverload.test_generic_calls_cuda   s!    	" &7F-r   c                P    R  p\         \        ,          pV P                  W4       R# )c                     \        V 4       R # r   )r   r1   s   &r   r   4TestOverload.test_cuda_calls_generic.<locals>.kernel   r   r   N)rX   r0   r   r   s   &  r   test_cuda_calls_generic$TestOverload.test_cuda_calls_generic   s"    	" &(::F-r   c                P    R  p\         \        ,          pV P                  W4       R# )c                     \        V 4       R # r   )r!   r1   s   &r   r   1TestOverload.test_cuda_calls_cuda.<locals>.kernel  s
    Ar   N)r]   r;   r   r   s   &  r   test_cuda_calls_cuda!TestOverload.test_cuda_calls_cuda  s!    	 #_4F-r   c                :    R  p\         pV P                  W4       R# )c                     \        V 4       R # r   )r#   r1   s   &r   r   8TestOverload.test_call_target_overloaded.<locals>.kernel  s
    a r   N)rg   r   r   s   &  r   test_call_target_overloaded(TestOverload.test_call_target_overloaded
  s    	! "F-r   c                P    R  p\         \        ,          pV P                  W4       R# )c                     \        V 4       R # r   )r%   r1   s   &r   r   ATestOverload.test_generic_calls_target_overloaded.<locals>.kernel  s
    +A.r   N)rl   rg   r   r   s   &  r   $test_generic_calls_target_overloaded1TestOverload.test_generic_calls_target_overloaded  s!    	/ +^;F-r   c                P    R  p\         \        ,          pV P                  W4       R# )c                     \        V 4       R # r   )r'   r1   s   &r   r   >TestOverload.test_cuda_calls_target_overloaded.<locals>.kernel  s
    (+r   N)rr   rg   r   r   s   &  r   !test_cuda_calls_target_overloaded.TestOverload.test_cuda_calls_target_overloaded  s!    	, (.8F-r   c                    R  p\         \        ,          pV P                  W4       \        \        ,          pV P                  W4       R# )c                     \        V 4       R # r   )r)   r1   s   &r   r   KTestOverload.test_target_overloaded_calls_target_overloaded.<locals>.kernel   s
    5a8r   N)r|   rg   r   rw   rb   r   r   s   &  r   .test_target_overloaded_calls_target_overloaded;TestOverload.test_target_overloaded_calls_target_overloaded  s<    	9 2NBF- 57HH1r   c                   V P                  4       w  r\        V! 4       4      p\        VR RR7      R 4       pV P                  \        R4      ;_uu_ 4        \        \        P                  ! V4      4      R 4       pRRR4       \        P                  ! \        P                  ! \        P                  R,          V4      4      R 4       pR#   + '       g   i     LX; i)		cuda_onlyr   r+   c                     R  pV# )c                     ^*# )*   r   )objs   &r   impTTestOverload.test_overload_attribute_target.<locals>.ov_dummy_cuda_attr.<locals>.imp1  s    r   r   )r   r   s   & r   ov_dummy_cuda_attrGTestOverload.test_overload_attribute_target.<locals>.ov_dummy_cuda_attr/  s     Jr   zUnknown attribute 'cuda_only'c                     V P                   # r   r   r1   s   &r   illegal_target_attr_useLTestOverload.test_overload_attribute_target.<locals>.illegal_target_attr_use:  s    {{"r   N:NNr   c                 $    VP                   V ^ &   R# r/   r   )resdummys   &&r   cuda_target_attr_useITestOverload.test_overload_attribute_target.<locals>.cuda_target_attr_useA  s    __CFr   )make_dummy_typer	   r   assertRaisesRegexr   r   r   int64r   r   void)r   MyDummyMyDummyTypemydummy_typer   r   r   s   &      r   test_overload_attribute_target+TestOverload.test_overload_attribute_target+  s    #335gi(	KV	D	 
E	 ##K$CE E%++l+,# -#E 
%**U[[-|<	=	% 
>	%E Es   &CC	r   N)__name__
__module____qualname____firstlineno__r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r      sZ     )
)
............
2% %r   r   __main__)<numbar   r   r   numba.core.errorsr   numba.core.extendingr   r   numba.core.typing.typeofr	   numba.cuda.testingr
   r   r   numpyr   r   r   r   r   r   r   r   r!   r#   r%   r'   r)   r0   r;   rB   rG   rL   rR   rX   r]   rb   rg   rl   rr   rw   r|   r7   r>   rD   rI   rN   rT   rZ   r_   rd   ri   rn   rt   ry   r~   r   r   mainr   r   r   <module>r     sm   # # ) = + F F 
												         $& !!# 
 
.+ , 
+f% & 
.+ , 
+f% & 

	2 3 

Y/ 0 

V, - 
/&) * 

I. / 

F+ , 

))< = 

&v6 7 

3IF G 

3FC D 78F%< F% 9F%R zMMO r   