+
     þÎj_  ã                   ó,  € ^ RI Ht ^ RIHtHt ^ RIHt ^ RIHtH	t	 ^ RI
Ht ^ RIHt ^ RIHt ^ RIHt R	 t]R
 4       t]R 4       t]R 4       t]! ]P,                  ! ]4      RRR7      R 4       t]R 4       tR t]R 4       t]R 4       t]R 4       tR# )é    )Úir)ÚcudaÚtypes)Úcgutils)ÚRequireLiteralValueÚNumbaValueError)Ú	signature)Úoverload_attribute)Ú	nvvmutils)Ú	intrinsicc                 óî   € V P                   pV^8X  d   \        P                  pM8VR9   d'   \        P                  ! \        P                  V4      pM\	        R4      h\        V\        P                  4      # )é   zargument can only be 1, 2, 3)é   é   )Úliteral_valuer   Úint64ÚUniTupler   r	   Úint32)ÚndimÚvalÚrestypes   &  ÚK/opt/data/home/.local/lib/python3.14/site-packages/numba/cuda/intrinsics.pyÚ_type_grid_functionr      sU   € Ø
×
Ñ
€CØ
ˆa„xÜ—+‘+‰Ø	�ŒÜ—.’.¤§¡¨cÓ2‰äÐ<Ó=Ð=ä�WœeŸk™kÓ*Ð*ó    c                óz   € \        V\        P                  4      '       g   \        V4      h\	        V4      pR pW#3# )aô  grid(ndim)

Return the absolute position of the current thread in the entire grid of
blocks.  *ndim* should correspond to the number of dimensions declared when
instantiating the kernel. If *ndim* is 1, a single integer is returned.
If *ndim* is 2 or 3, a tuple of the given number of integers is returned.

Computation of the first integer is as follows::

    cuda.threadIdx.x + cuda.blockIdx.x * cuda.blockDim.x

and is similar for the other two indices, but using the ``y`` and ``z``
attributes.
c                 ó&  € VP                   pV\        P                  8X  d   \        P                  ! V^R7      # \        V\        P                  4      '       d8   \        P                  ! WP                  R7      p\        P                  ! W4      # R# )r   )ÚdimN)
Úreturn_typer   r   r   Úget_global_idÚ
isinstancer   Úcountr   Ú
pack_array)ÚcontextÚbuilderÚsigÚargsr   Úidss   &&&&  r   ÚcodegenÚgrid.<locals>.codegen1   se   € Ø—/‘/ˆØ”e—k‘kÔ!Ü×*Ò*¨7¸Ô:Ð:Ü˜¤§¡×0Ò0Ü×)Ò)¨'·}±}ÔEˆCÜ×%Ò% gÓ3Ð3ñ 1r   ©r    r   ÚIntegerLiteralr   r   )Ú	typingctxr   r%   r(   s   &&  r   Úgridr-      s;   € ô" �dœE×0Ñ0×1Ò1Ü! $Ó'Ð'ä
˜dÓ
#€Cò4ð ˆ<Ðr   c                óˆ   a€ \        V\        P                  4      '       g   \        V4      h\	        V4      pR oV3R lpW#3# )aß  gridsize(ndim)

Return the absolute size (or shape) in threads of the entire grid of
blocks. *ndim* should correspond to the number of dimensions declared when
instantiating the kernel. If *ndim* is 1, a single integer is returned.
If *ndim* is 2 or 3, a tuple of the given number of integers is returned.

Computation of the first integer is as follows::

    cuda.blockDim.x * cuda.gridDim.x

and is similar for the other two indices, but using the ``y`` and ``z``
attributes.
c                 óö   € \         P                  ! ^@4      p\        P                  ! V RV 24      p\        P                  ! V RV 24      pV P	                  V P                  W24      V P                  WB4      4      # )é@   zntid.znctaid.)r   ÚIntTyper   Ú	call_sregÚmulÚsext)r$   r   Úi64ÚntidÚnctaids   &&   r   Ú_nthreads_for_dimÚ#gridsize.<locals>._nthreads_for_dimR   sb   € Ü�jŠj˜‹nˆÜ×"Ò" 7¨e°C°5¨MÓ:ˆÜ×$Ò$ W°¸°u¨oÓ>ˆØ�{‰{˜7Ÿ<™<¨Ó2°G·L±LÀÓ4MÓNÐNr   c                 ól  <€ VP                   pS! VR 4      pV\        P                  8X  d   V# \        V\        P                  4      '       dg   S! VR4      pVP
                  ^8X  d   \        P                  ! WV34      # VP
                  ^8X  d"   S! VR4      p\        P                  ! WWg34      # R# R# )ÚxÚyÚzN)r   r   r   r    r   r!   r   r"   )	r#   r$   r%   r&   r   ÚnxÚnyÚnzr8   s	   &&&&    €r   r(   Úgridsize.<locals>.codegenX   sž   ø€ Ø—/‘/ˆÙ˜w¨Ó,ˆà”e—k‘kÔ!ØˆIÜ˜¤§¡×0Ò0Ù" 7¨CÓ0ˆBà�}‰} Ô!Ü×)Ò)¨'¸°8Ó<Ð<Ø—‘ !Ô#Ù& w°Ó4�Ü×)Ò)¨'¸°<Ó@Ð@ñ $ñ 1r   r*   )r,   r   r%   r(   r8   s   &&  @r   ÚgridsizerB   <   sC   ø€ ô" �dœE×0Ñ0×1Ò1Ü! $Ó'Ð'ä
˜dÓ
#€CòOõAð ˆ<Ðr   c                 ó@   € \        \        P                  4      pR  pW3# )c                 ó0   € \         P                  ! VR 4      # )Úwarpsize)r   r2   )r#   r$   r%   r&   s   &&&&r   r(   Ú_warpsize.<locals>.codegenn   s   € Ü×"Ò" 7¨JÓ7Ð7r   )r	   r   r   ©r,   r%   r(   s   &  r   Ú	_warpsizerH   j   s   € ä
”E—K‘KÓ
 €Cò8ð ˆ<Ðr   rE   r   )Útargetc                ó   € R pV# )zS
The size of a warp. All architectures implemented to date have a warp size
of 32.
c                 ó   € \        4       # )N)rH   )Úmods   &r   ÚgetÚcuda_warpsize.<locals>.getz   s
   € Ü‹{Ðr   © )rL   rM   s   & r   Úcuda_warpsizerP   t   s   € òà€Jr   c                ó@   € \        \        P                  4      pR pW3# )a  
Synchronize all threads in the same thread block.  This function implements
the same pattern as barriers in traditional multi-threaded programming: this
function waits until all threads in the block call it, at which point it
returns control to all its callers.
c                 óä   € R pVP                   p\        P                  ! \        P                  ! 4       R4      p\        P
                  ! WVV4      pVP                  VR4       V P                  4       # )zllvm.nvvm.barrier0rO   )Úmoduler   ÚFunctionTypeÚVoidTyper   Úget_or_insert_functionÚcallÚget_dummy_value)r#   r$   r%   r&   ÚfnameÚlmodÚfntyÚsyncs   &&&&    r   r(   Úsyncthreads.<locals>.codegenŒ   sU   € Ø$ˆØ�~‰~ˆÜ�ŠœrŸ{š{›}¨bÓ1ˆÜ×-Ò-¨d¸%Ó@ˆØ�‰�T˜2ÔØ×&Ñ&Ó(Ð(r   )r	   r   ÚnonerG   s   &  r   Úsyncthreadsr_   ‚   s!   € ô ”E—J‘JÓ
€Cò)ð ˆ<Ðr   c                 óª   a€ \        V\        P                  4      '       g   R # \        \        P                  \        P                  4      pV3R lpW43# )Nc                 óê   <€ \         P                  ! \         P                  ! ^ 4      \         P                  ! ^ 4      34      p\        P                  ! VP
                  VS4      pVP                  WS4      # )é    )r   rT   r1   r   rV   rS   rW   )r#   r$   r%   r&   r[   r\   rY   s   &&&&  €r   r(   Ú'_syncthreads_predicate.<locals>.codegen�   sM   ø€ Ü�ŠœrŸzšz¨"›~´·
²
¸2³Ð/@ÓAˆÜ×-Ò-¨g¯n©n¸dÀEÓJˆØ�|‰|˜DÓ'Ð'r   )r    r   ÚIntegerr	   Úi4)r,   Ú	predicaterY   r%   r(   s   &&f  r   Ú_syncthreads_predicaterg   —   s:   ø€ Ü�i¤§¡×/Ò/Ùä
”E—H‘HœeŸh™hÓ
'€Cõ(ð
 ˆ<Ðr   c                ó   € Rp\        WV4      # )z�
syncthreads_count(predicate)

An extension to numba.cuda.syncthreads where the return value is a count
of the threads where predicate is true.
zllvm.nvvm.barrier0.popc©rg   ©r,   rf   rY   s   && r   Úsyncthreads_countrk   ¥   s   € ð &€EÜ! )¸Ó>Ð>r   c                ó   € Rp\        WV4      # )z�
syncthreads_and(predicate)

An extension to numba.cuda.syncthreads where 1 is returned if predicate is
true for all threads or 0 otherwise.
zllvm.nvvm.barrier0.andri   rj   s   && r   Úsyncthreads_andrm   ±   s   € ð %€EÜ! )¸Ó>Ð>r   c                ó   € Rp\        WV4      # )z‹
syncthreads_or(predicate)

An extension to numba.cuda.syncthreads where 1 is returned if predicate is
true for any thread or 0 otherwise.
zllvm.nvvm.barrier0.orri   rj   s   && r   Úsyncthreads_orro   ½   s   € ð $€EÜ! )¸Ó>Ð>r   N)Úllvmliter   Únumbar   r   Ú
numba.corer   Únumba.core.errorsr   r   Únumba.core.typingr	   Únumba.core.extendingr
   Ú
numba.cudar   Únumba.cuda.extendingr   r   r-   rB   rH   ÚModulerP   r_   rg   rk   rm   ro   rO   r   r   Ú<module>ry      sÜ   ðÝ ç Ý ß BÝ 'Ý 3Ý  Ý *ò	+ð ñó ðð@ ñ*ó ð*ðZ ñó ðñ �E—L’L Ó&¨
¸6ÔBñó Cðð ñó ðò(ð ñ?ó ð?ð ñ?ó ð?ð ñ?ó ò?r   