+
    ‘°³jT  ã                  ó.  a € 0 t $ ^ RIHt ^ RIt^ RIt^ RIt^ RIHt ^ RIH	t	 ^ RI
Ht  ! R R]4      t]	! RRR	7       ! R
 R4      4       t]P                   R R l4       t]P$                  R8X  d   ]P&                  tR]R&   M]P,                  tR R ltR# )é    )ÚannotationsN)ÚCallable)Ú	dataclass)Úload_nvidia_dynamic_libc                  ó   € ] tR t^tRtRtR# )ÚQueryDriverCudaVersionErrorzURaised when ``query_driver_cuda_version()`` cannot determine the CUDA driver version.© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r	   ó    Úc/home/luca/screen-checking/.venv/lib/python3.14/site-packages/cuda/pathfinder/_utils/driver_info.pyr   r      s   † Ý_r   r   T)ÚfrozenÚslotsc                  ó:   € ] tR t^t$ RtR]R&   R]R&   R]R&   RtR# )ÚDriverCudaVersionah  
CUDA-facing driver version reported by ``cuDriverGetVersion()``.

The name ``DriverCudaVersion`` is intentionally specific: this dataclass
models the version shown as ``CUDA Version`` in ``nvidia-smi``, not the
graphics driver release shown as ``Driver Version``. More specifically,
it reflects the CUDA user-mode driver (UMD) interface version reported by
``cuDriverGetVersion()``, not the kernel-mode driver (KMD) package
version.

Example ``nvidia-smi`` output::

    +---------------------------------------------------------------------+
    | NVIDIA-SMI 595.58.03  Driver Version: 595.58.03  CUDA Version: 13.2 |
    +---------------------------------------------------------------------+

For the example above, ``DriverCudaVersion(encoded=13020, major=13,
minor=2)`` corresponds to ``CUDA Version: 13.2``. It does not correspond
to ``Driver Version: 595.58.03``.
ÚintÚencodedÚmajorÚminorr	   N)r
   r   r   r   r   Ú__annotations__r   r	   r   r   r   r      s   ‡ ñð* ƒLØƒJØ‡Jr   r   c               ó   € V ^8„  d   QhRR/# )é   Úreturnr   r	   )Úformats   "r   Ú__annotate__r   2   s   € ÷ 
_ñ 
_Ð#4ñ 
_r   c                 óœ   €  \        4       p \        V V R,          V R,          ^
,          R7      #   \         d   p\        R4      ThRp?ii ; i)zFReturn the CUDA driver version parsed into its major/minor components.iè  )r   r   r   z(Failed to query the CUDA driver version.N)Ú_query_driver_cuda_version_intr   Ú	Exceptionr   )r   Úexcs     r   Úquery_driver_cuda_versionr$   1   sV   € ð_Ü0Ó2ˆÜ ØØ˜T•/Ø˜T•> bÕ(ô
ð 	
øô
 ô _Ü)Ð*TÓUÐ[^Ð^ûð_ús   ‚,/ ¯AºAÁAÚwin32zCallable[[str], ctypes.CDLL]Ú_DRIVER_LIB_LOADERc               ó   € V ^8„  d   QhRR/# )r   r   r   r	   )r   s   "r   r   r   E   s   € ÷ ñ ¨ñ r   c                 ó~  € \        R4      p \        V P                  4      pVP                  p\        P
                  ! \        P                  4      .Vn        \        P                  Vn        \        P                  ! 4       pV! \        P                  ! V4      4      pV^ 8w  d   \        RV R24      hVP                  # )zEReturn the encoded CUDA driver version from ``cuDriverGetVersion()``.ÚcudazEFailed to query CUDA driver version via cuDriverGetVersion() (status=z).)Ú_load_nvidia_dynamic_libr&   Úabs_pathÚcuDriverGetVersionÚctypesÚPOINTERÚc_intÚargtypesÚrestypeÚbyrefÚRuntimeErrorÚvalue)Úloaded_cudaÚ
driver_libÚcu_driver_get_versionÚversionÚstatuss        r   r!   r!   E   s•   € ä*¨6Ó2€KÜ# K×$8Ñ$8Ó9€JØ&×9Ñ9ÐÜ&,§n¢n´V·\±\Ó&BÐ%CÐÔ"Ü$*§L¡LÐÔ!Ü�lŠl‹n€GÙ"¤6§<¢<°Ó#8Ó9€FØ�„{ÜÐbÐciÐbjÐjlÐmÓnÐnØ�=‰=Ðr   )Ú__conditional_annotations__Ú
__future__r   r-   Ú	functoolsÚsysÚcollections.abcr   Údataclassesr   Ú5cuda.pathfinder._dynamic_libs.load_nvidia_dynamic_libr   r*   r3   r   r   Úcacher$   ÚplatformÚWinDLLr&   r   ÚCDLLr!   )r:   s   @r   Ú<module>rE      s—   øð÷ #Ð "ã Û Û 
Ý $Ý !õô
` ,ô `ñ �$˜dÔ#÷ð ó $ðð6 ‡�ô
_ó ð
_ð ‡<�<�7ÔØ7=·}±}ÐÐ4ÔDàŸ™Ð÷r   