+
    :i                         ^ RI t^ RIHt ^ RIHtHtHt ^ RIH	t	H
t
 ^ RIHt ^ RIt]! R4       ! R R]4      4       t]R	8X  d   ]P                   ! 4        R# R# )
    N)cuda)unittestCUDATestCaseskip_on_cudasim)
linux_onlyoverride_config)NumbaPerformanceWarningz+cudasim does not raise performance warningsc                   l   a  ] tR t^	t o R tR tR tR tR t]	R 4       t
R tR tR	 tR
 tR tRtV tR# )TestWarningsc           	     "   \         P                  R  4       p\        R^4      ;_uu_ 4        \        P                  ! RR7      ;_uu_ 4       pVR,          ! 4        RRR4       RRR4       V P                  X^ ,          P                  \        4       V P                  R\        V^ ,          P                  4      4       V P                  R\        V^ ,          P                  4      4       R#   + '       g   i     L; i  + '       g   i     L; i)c                      R # N r       b/var/www/html/photoedit/myenv/lib/python3.14/site-packages/numba/cuda/tests/cudapy/test_warning.pykernelBTestWarnings.test_inefficient_launch_configuration.<locals>.kernel       r   CUDA_LOW_OCCUPANCY_WARNINGSTrecordNz	Grid sizezlow occupancy)   r   )r   jitr   warningscatch_warningsassertEqualcategoryr	   assertInstrmessageselfr   ws   &  r   %test_inefficient_launch_configuration2TestWarnings.test_inefficient_launch_configuration   s    		 
	 :A>>((55t 6 ? 	1(?@k3qt||#45os1Q4<<'89 65 ?>s#    C>C+	C>+C;6C>>D	c           	     Z   \         P                  R  4       p\        R^4      ;_uu_ 4        \        P                  ! RR7      ;_uu_ 4       pVR,          ! 4        RRR4       RRR4       V P                  \        X4      ^ 4       R#   + '       g   i     L5; i  + '       g   i     L@; i)c                      R # r   r   r   r   r   r   @TestWarnings.test_efficient_launch_configuration.<locals>.kernel   r   r   r   Tr   N)   r)   )r   r   r   r   r   r   lenr!   s   &  r   #test_efficient_launch_configuration0TestWarnings.test_efficient_launch_configuration   sx    		 
	 :A>>((55x " 6 ? 	Q# 65 ?>s#    BB	BBBB*	c           	     x   \         P                  R  4       p^
p\        P                  ! V\        P                  R7      p\        R^4      ;_uu_ 4        \        P                  ! RR7      ;_uu_ 4       pV^V3,          ! W24       RRR4       RRR4       V P                  X^ ,          P                  \        4       V P                  R\        V^ ,          P                  4      4       V P                  R\        V^ ,          P                  4      4       R#   + '       g   i     L; i  + '       g   i     L; i)c                     V^,           V ^ &   R# r   Nr   rxs   &&r   foo1TestWarnings.test_warn_on_host_array.<locals>.foo$       q5AaDr   dtypeCUDA_WARN_ON_IMPLICIT_COPYTr   N)Host array used in CUDA kernel will incurcopy overhead)r   r   npzerosfloat32r   r   r   r   r   r	   r   r   r    )r"   r3   Narr_f32r#   s   &    r   test_warn_on_host_array$TestWarnings.test_warn_on_host_array#   s    		 
	 ((1BJJ/91==((55AqD	'% 6 > 	1(?@A!A$,,'	)os1Q4<<'89 65 >=$    D)3D	D)D&!D))D9	c           	     x   \         P                  R  4       p^
p\         P                  ! V\        P                  R7      p\        R^4      ;_uu_ 4        \        P                  ! RR7      ;_uu_ 4       pV^V3,          ! W24       RRR4       RRR4       V P                  X^ ,          P                  \        4       V P                  R\        V^ ,          P                  4      4       V P                  R\        V^ ,          P                  4      4       R#   + '       g   i     L; i  + '       g   i     L; i)c                     V^,           V ^ &   R# r/   r   r0   s   &&r   r3   8TestWarnings.test_pinned_warn_on_host_array.<locals>.foo4   r5   r   r6   r8   Tr   Nr9   r:   )r   r   pinned_arrayr;   r=   r   r   r   r   r   r	   r   r   r    r"   r3   r>   aryr#   s   &    r   test_pinned_warn_on_host_array+TestWarnings.test_pinned_warn_on_host_array3   s    		 
	 491==((55AqD	#! 6 > 	1(?@A!A$,,'	)os1Q4<<'89 65 >=rB   c           	        \         P                  R  4       p^
p\         P                  ! V\        P                  R7      p\        R^4      ;_uu_ 4        \        P                  ! RR7      ;_uu_ 4       pV^V3,          ! W24       RRR4       RRR4       V P                  \        X4      ^ 4       R#   + '       g   i     L5; i  + '       g   i     L@; i)c                     V^,           V ^ &   R# r/   r   r0   s   &&r   r3   5TestWarnings.test_nowarn_on_mapped_array.<locals>.fooE   r5   r   r6   r8   Tr   N)
r   r   mapped_arrayr;   r=   r   r   r   r   r*   rG   s   &    r   test_nowarn_on_mapped_array(TestWarnings.test_nowarn_on_mapped_arrayD       		 
	 491==((55AqD	#! 6 > 	Q# 65 >=$    C3B2	C2C=CC	c           	        \         P                  R  4       p^
p\         P                  ! V\        P                  R7      p\        R^4      ;_uu_ 4        \        P                  ! RR7      ;_uu_ 4       pV^V3,          ! W24       RRR4       RRR4       V P                  \        X4      ^ 4       R#   + '       g   i     L5; i  + '       g   i     L@; i)c                     V^,           V ^ &   R# r/   r   r0   s   &&r   r3   6TestWarnings.test_nowarn_on_managed_array.<locals>.fooT   r5   r   r6   r8   Tr   N)
r   r   managed_arrayr;   r=   r   r   r   r   r*   rG   s   &    r   test_nowarn_on_managed_array)TestWarnings.test_nowarn_on_managed_arrayR   s    		 
	   "**591==((55AqD	#! 6 > 	Q# 65 >=rR   c           	        \         P                  R  4       p^
p\         P                  ! V\        P                  R7      p\        R^4      ;_uu_ 4        \        P                  ! RR7      ;_uu_ 4       pV^V3,          ! W24       RRR4       RRR4       V P                  \        X4      ^ 4       R#   + '       g   i     L5; i  + '       g   i     L@; i)c                     V^,           V ^ &   R# r/   r   r0   s   &&r   r3   5TestWarnings.test_nowarn_on_device_array.<locals>.foob   r5   r   r6   r8   Tr   N)
r   r   device_arrayr;   r=   r   r   r   r   r*   rG   s   &    r   test_nowarn_on_device_array(TestWarnings.test_nowarn_on_device_arraya   rQ   rR   c                :   \         P                  ! R R7      ;_uu_ 4       p\        P                  ! R R R7       RRR4       V P	                  \        X4      ^4       V P                  R\        V^ ,          P                  4      4       R#   + '       g   i     LY; i)Tr   debugoptNnot supported by CUDA	r   r   r   r   r   r*   r   r   r    r"   r#   s   & r   test_warn_on_debug_and_opt'TestWarnings.test_warn_on_debug_and_opto   sc    $$D11QHH4T* 2 	Q#-s1Q4<</@A	 21s   B

B	c                8   \         P                  ! R R7      ;_uu_ 4       p\        P                  ! R R7       RRR4       V P	                  \        X4      ^4       V P                  R\        V^ ,          P                  4      4       R#   + '       g   i     LY; i)Tr   )ra   Nrc   rd   re   s   & r   "test_warn_on_debug_and_opt_default/TestWarnings.test_warn_on_debug_and_opt_defaultv   sa    $$D11QHH4  2 	Q#-s1Q4<</@A	 21s   B		B	c                    \         P                  ! R R7      ;_uu_ 4       p\        P                  ! R RR7       RRR4       V P	                  \        X4      ^ 4       R#   + '       g   i     L-; i)Tr   Fr`   Nr   r   r   r   r   r*   re   s   & r    test_no_warn_on_debug_and_no_opt-TestWarnings.test_no_warn_on_debug_and_no_opt}   sG    $$D11QHH4U+ 2 	Q# 21s   AA.	c                    \         P                  ! R R7      ;_uu_ 4       p\        P                  ! 4        RRR4       V P	                  \        X4      ^ 4       R#   + '       g   i     L-; i)Tr   Nrl   re   s   & r   )test_no_warn_with_no_debug_and_opt_kwargs6TestWarnings.test_no_warn_with_no_debug_and_opt_kwargs   sB    $$D11QHHJ 2 	Q# 21s   AA+	r   N)__name__
__module____qualname____firstlineno__r$   r+   r@   rI   rO   r   rW   r]   rf   ri   rm   rp   __static_attributes____classdictcell__)__classdict__s   @r   r   r   	   sR     :	$: :"$ $ $$BB$$ $r   r   __main__)numpyr;   numbar   numba.cuda.testingr   r   r   numba.tests.supportr   r   numba.core.errorsr	   r   r   rr   mainr   r   r   <module>r      sX      F F ; 5  >?}$< }$ @}$@ zMMO r   