§
    qŠtj]	  ã                   óF   — d dl Z d dlZd dlZda ej        ¦   «         Zd„ ZdS )é    NFc            	      óÂ  — t           rdS t          5  t           r	 ddd¦  «         dS da ddd¦  «         n# 1 swxY w Y   t          j                             d¦  «        rdS ddlm}  | j        }|dz  }|                      ¦   «         \  }}|| j	        j
        k    rt          d|› �¦  «        ‚|dz  }||k    r(t          j        d|› d	|› d
|› d�t          d¬¦  «         dS dS )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         ú`/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/cuda/bindings/utils/_version_check.pyÚ#warn_if_cuda_major_version_mismatchr      s°  € õ ,ð ØˆÝ	ð 4ð 4Ý/ð 	Øð4ð 4ð 4ñ 4ô 4ð 4ð 4ð 4ð 04Ð,ð4ð 4ð 4ñ 4ô 4ð 4ð 4ð 4ð 4ð 4ð 4øøøð 4ð 4ð 4ð 4õ 
„z‡~‚~ÐAÑBÔBð Øˆð %Ð$Ð$Ð$Ð$Ð$ð Ô)€OØ# tÑ+€Mð "×4Ò4Ñ6Ô6Ñ€CˆØ
ˆfŒoÔ*Ò*Ð*ÝÐHÀ3ÐHÐHÑIÔIÐIà# tÑ+€Mà�}Ò$Ð$ÝŒð[¸mð [ð [Ø6Cð[ð [ð @Mð[ð [ð [õ
 Øð	
ñ 	
ô 	
ð 	
ð 	
ð 	
ð %Ð$s   ‘	5§5µ9¼9)r
   Ú	threadingr   r   ÚLockr	   r   © ó    r   ú<module>r!      sU   ðð 
€	€	€	Ø Ð Ð Ð Ø €€€ð (-Ð $Øˆ	ŒÑÔ€ð0
ð 0
ð 0
ð 0
ð 0
r    