Ë
    H²j]	  ã                   óH   — d dl Z d dlZd dlZda ej                  «       Zd„ Zy)é    NFc            	      ó°  — t         ryt        5  t         r
	 ddd«       yda ddd«       t        j                  j	                  d«      ryddlm}  | j                  }|dz  }| j                  «       \  }}|| j                  j                  k7  rt        d|› �«      ‚|dz  }||kD  r't        j                  d|› d	|› d
|› d�t        d¬«       yy# 1 sw Y   Œ¬xY w)a)  Warn if the CUDA driver major version is older than cuda-bindings compile-time version.

    This function compares the CUDA major version that cuda-bindings was compiled
    against with the CUDA major version supported by the installed driver. If the
    compile-time major version is greater than the driver's major version, a warning
    is issued.

    The check runs only once per process. Subsequent calls are no-ops.

    The warning can be suppressed by setting the environment variable
    ``CUDA_PYTHON_DISABLE_MAJOR_VERSION_WARNING=1``.
    NTÚ)CUDA_PYTHON_DISABLE_MAJOR_VERSION_WARNINGr   )Údriveriè  z%Failed to query CUDA driver version: z/cuda-bindings was built for CUDA major version z1, but the NVIDIA driver only supports up to CUDA zŒ. Some cuda-bindings features may not work correctly. Consider updating your NVIDIA driver, or using a cuda-bindings version built for CUDA zM. (Set CUDA_PYTHON_DISABLE_MAJOR_VERSION_WARNING=1 to suppress this warning.)é   )Ú
stacklevel)Ú$_major_version_compatibility_checkedÚ_lockÚosÚenvironÚgetÚcuda.bindingsr   ÚCUDA_VERSIONÚcuDriverGetVersionÚCUresultÚCUDA_SUCCESSÚRuntimeErrorÚwarningsÚwarnÚUserWarning)r   Úcompile_versionÚcompile_majorÚerrÚruntime_versionÚruntime_majors         úa/var/www/html/ia-enhanced/venv/lib/python3.12/site-packages/cuda/bindings/utils/_version_check.pyÚ#warn_if_cuda_major_version_mismatchr      sû   € õ ,ØÜ	ñ 4Ý/Ø÷4ð 4ð 04Ð,÷4ô 
‡z�z‡~�~ÐAÔBØõ %ð ×)Ñ)€OØ# tÑ+€Mð "×4Ñ4Ó6Ñ€CˆØ
ˆf�o‰o×*Ñ*Ò*ÜÐBÀ3À%ÐHÓIÐIà# tÑ+€Mà�}Ò$Ü�‰Ø=¸m¸_ð M6Ø6C°_ð E?à?L¸oð NZð[ô
 Øö	
ð %÷/4ð 4ús   ŽCŸCÃC)r
   Ú	threadingr   r   ÚLockr	   r   © ó    r   ú<module>r!      s+   ðó 
Û Û ð (-Ð $Øˆ	�‰Ó€ó0
r    