+
     þÎj<
  ã                   óÚ   € R t ^ RIHt ^RIHtHtHt ^RIHt ^ RI	H
t
 ^ RIHt ^RIHtHtHt RR ltR t ! R	 R
]4      tR tR tR tR tR t ! R R]4      t]tRR lt]R 4       tR# )z
Contains CUDA API functions
)Úcontextmanager)Úrequire_contextÚresetÚgpus©ÚFakeCUDAKernel)Úis_signature©Úwarn)ÚInÚOutÚInOutc                 ó"   € V ^ 8X  g   Q R4       hR# )é    z/Only a single device supported by the simulatorN© )Údevs   &ÚN/opt/data/home/.local/lib/python3.14/site-packages/numba/cuda/simulator/api.pyÚselect_devicer      s   € Ø�!Œ8ÐFÐFÓFŠ8ó    c                  ó   € R # )Tr   r   r   r   Úis_float16_supportedr      s   € Ùr   c                   ó:   a € ] tR t^t o Rt]R 4       tR tRtV t	R# )Ústreamz‡
The stream API is supported in the simulator - however, all execution
occurs synchronously, so synchronization requires no operation.
c              #  ó   "  € R x € R # 5i©Nr   ©Úselfs   &r   Úauto_synchronizeÚstream.auto_synchronize   s   é € åùó   ‚	c                ó   € R # r   r   r   s   &r   ÚsynchronizeÚstream.synchronize!   ó   € Ùr   r   N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r!   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r      s(   ø‡ € ñð ñó ð÷ð r   r   c                  ó   € R # r   r   r   r   r   r!   r!   %   ó   € Ùr   c                  ó   € R \         n        R# )TN)r   Úclosedr   r   r   Úcloser1   )   s	   € Ø„D†Kr   c                  ó   € R # r   r   )ÚargsÚkwargss   *,r   Údeclare_devicer5   -   r.   r   c                  ód   € \        R 4       \        RR,          4       \        RR,          4       R# )zFound 1 CUDA deviceszid %d    %20s %40sz	%40s: 5.0zcompute capabilityN)r   Ú	SIMULATORz[SUPPORTED])Úprintr   r   r   Údetectr9   1   s(   € Ü	Ð
 Ô!Ü	Ð
Ð!@Õ
@ÔAÜ	ˆ+Ð,Õ
,Ö-r   c                  ó   € \         # r   )r   r   r   r   Úlist_devicesr;   7   s   € Ü€Kr   c                   óD   a € ] tR t^=t o RtRR ltRR ltR tR tRt	V t
R# )	ÚEventzŽ
The simulator supports the event API, but they do not record timing info,
and all simulation is synchronous. Execution time is not recorded.
c                ó   € R # r   r   ©r   r   s   &&r   ÚrecordÚEvent.recordB   r#   r   c                ó   € R # r   r   r?   s   &&r   ÚwaitÚ
Event.waitE   r#   r   c                ó   € R # r   r   r   s   &r   r!   ÚEvent.synchronizeH   r#   r   c                ó   € \        R 4       R# )zSimulator timings are bogusg        r	   )r   Úevents   &&r   Úelapsed_timeÚEvent.elapsed_timeK   s   € ÜÐ*Ô+Ùr   r   N©r   )r$   r%   r&   r'   r(   r@   rC   r!   rI   r)   r*   r+   s   @r   r=   r=   =   s#   ø‡ € ñôôò÷ð r   r=   Nc                 óÒ   aaa€ V'       d   \        R 4      hVe   \        R4      hV e(   \        V 4      '       g   \        V \        4      '       d   VVV3R lpV# \	        V SSR7      # )z)bounds checking is not supported for CUDAz Cannot link PTX in the simulatorc                 ó"   <€ \        V SSSR 7      # ))ÚdeviceÚfastmathÚdebugr   )ÚfnrP   rN   rO   s   &€€€r   Ú
jitwrapperÚjit.<locals>.jitwrapperb   s   ø€ Ü! "Ø)/Ø+3Ø(-ô/ð /r   )rN   rP   )ÚNotImplementedErrorr   Ú
isinstanceÚlistr   )Úfunc_or_sigrN   rP   ÚargtypesÚinlineÚrestyperO   ÚlinkÚboundscheckÚoptÚcacherR   s   &ff&&&f&&&& r   Újitr_   S   sa   ú€ ÷
 Ü!Ð"MÓNÐNàÒÜ!Ð"DÓEÐEð 	Òœ|¨K×8Ò8Ü˜+¤t×,Ò,÷	/ð
 ÐÜ˜+¨f¸EÔBÐBr   c               #   ó   "  € R x € R # 5ir   r   r   r   r   Údefer_cleanupra   k   s
   é € õ 
ùr   rK   )NFFNFNFNNTN)r(   Ú
contextlibr   Úcudadrv.devicesr   r   r   Úkernelr   Únumba.core.sigutilsr   Úwarningsr
   r3   r   r   r   r   r   Úobjectr   r!   r1   r5   r9   r;   r=   rH   r_   ra   r   r   r   Ú<module>rh      s�   ðñõ &ç 9Ñ 9Ý "Ý ,Ý ß !Ñ !ôGòô
ˆVô 
ò	òò	ò.òôˆFô ð& 	€ôCð0 ñ
ó ò
r   