o
    Gôjà!  ã                   @   s¨  d Z ddlZddlZddlZddlZdd„ Zeƒ  ddlmZ ddlm	Z	 eƒ d Z
e	e
ƒZ[[	dd	lmZ dd
lmZ ddlmZmZmZmZmZmZmZmZ ddlT ddlmZ ddlT ddlmZmZmZmZm Z  ddl!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z) ddl*m+Z+m,Z,m-Z- ddl.m/Z/ ddl0Z.ddl0m1Z2 ddl0m3Z3 ddl4Z.ddl5Z.dd„ Z6g d¢Z7e7ej77 Z7e7ej77 Z7dZ8dZ9dd„ Z:dd„ Z;e:ƒ  ddl<Z<	 e;ƒ e_=dS )z5
Expose top-level symbols that are safe for import *
é    Nc                  C   sð   dd„ } t jdd… }|dk r d|d › d|d	 › d�}t|ƒ‚ddl}| |ƒ}|d
k r=d|d › d|d	 › d�}t|ƒ‚|dkrRd|d › d|d	 › d�}t|ƒ‚zddl}W n
 tyb   Y dS w | |ƒ}|dk rvd|j› d�}t|ƒ‚dS )aÇ  
    Make sure the Python, NumPy and SciPy present are supported versions.
    This has to be done _before_ importing anything from Numba such that
    incompatible versions can be reported to the user. If this occurs _after_
    importing things from Numba and there's an issue in e.g. a Numba c-ext, a
    SystemError might have occurred which prevents reporting the likely cause of
    the problem (incompatible versions of critical dependencies).
    c                 S   s   t tt| j d¡d d… ƒƒS )NÚ.é   )ÚtupleÚmapÚintÚ__version__Úsplit)Úmod© r
   ú_/var/www/html/academy/tools/voices/clone/sv-venv/lib/python3.10/site-packages/numba/__init__.pyÚextract_version   s   z._ensure_critical_deps.<locals>.extract_versionNr   )é   é
   z/Numba needs Python 3.10 or greater. Got Python r   r   é   )r   é   z-Numba needs NumPy 1.22 or greater. Got NumPy )r   é   z)Numba needs NumPy 2.5 or less. Got NumPy )r   r   z7Numba requires SciPy version 1.0 or greater. Got SciPy )ÚsysÚversion_infoÚImportErrorÚnumpyÚscipyr   )r   Z	PYVERSIONÚmsgÚnpÚnumpy_versionr   Z
sp_versionr
   r
   r   Ú_ensure_critical_deps   sJ   ÿÿÿÿÿÿÿÿýr   r   )Úget_versions)Úgenerate_version_infoÚversion)Úconfig)Úerrors)ÚtypeofÚprangeÚpndindexÚgdbÚgdb_breakpointÚgdb_initÚ	literallyÚliteral_unroll)Ú*)Útypes)ÚcfuncÚjitÚnjitÚstencilÚ
jit_module)Ú	vectorizeÚguvectorizeÚthreading_layerÚget_num_threadsÚset_num_threadsÚset_parallel_chunksizeÚget_parallel_chunksizeÚget_thread_id)ÚcarrayÚfarrayÚ
from_dtype)Úexperimental)Úobjmode_context)Úparallel_chunksizec                 K   s   ddl m} |j| fi |¤ŽS )Nr   )Ú	_runtests)Znumba.testingr=   Úmain)ÚargvÚkwdsÚruntestsr
   r
   r   Útestw   s   rB   )r*   r9   r0   r+   r:   r,   r-   r.   r    r!   r#   r$   r%   r/   Úobjmoder'   r2   r3   r4   r5   r<   )r   é2   r   )é   r   r   c                  C   sž   ddl } ddl}t d¡}| |j¡}|r/ttt| 	¡ ƒƒ}|t
k r.dt
|jf  }t|ƒ‚n|  d¡ ddlm}m} |tk rJdt|  }t|ƒ‚|ƒ  dS )z,
    Make sure llvmlite is operational.
    r   Nz(\d+)\.(\d+).(\d+)zfNumba requires at least version %d.%d.%d of llvmlite.
Installed version is %s.
Please update llvmlite.z'llvmlite version format not recognized!)Úllvm_version_infoÚcheck_jit_executionzNumba requires at least version %d.%d.%d of LLVM.
Installed llvmlite is built against version %d.%d.%d.
Please update llvmlite.)ÚwarningsÚllvmliteÚreÚcompileÚmatchr   r   r   r   ÚgroupsÚ_min_llvmlite_versionr   ÚwarnZllvmlite.bindingrF   rG   Ú_min_llvm_version)rH   rI   ÚregexÚmÚverr   rF   rG   r
   r
   r   Ú_ensure_llvm›   s(   

ýû
ý
rT   c                  C   s  t js€z^tj d¡rtj d¡ ntj d¡rtj d¡ ntj d¡r+tj d¡ nW dS zttjj	dƒƒ s;W W dS W n t
yW   t ¡ d	krSt jrSd
} t | ¡ Y W dS w tj dd¡ W dS  ty   t ¡ d	kryt jr|t d¡ Y dS Y dS Y dS w dS )zU
    Tries to enable SVML if configuration permits use and the library is found.
    Úlinuxz
libsvml.soÚdarwinzlibsvml.dylibÚwinZsvml_dispmdFZhas_svmlÚx86_64z>SVML was found but llvmlite >= 0.23.2 is needed to support it.ZSVMLz-vector-library=SVMLTz'SVML was not found/could not be loaded.)r   ZDISABLE_INTEL_SVMLr   ÚplatformÚ
startswithrI   ÚbindingZload_library_permanentlyÚgetattrÚtargetsÚAttributeErrorÚmachineÚDEBUGrH   rO   Z
set_optionÚ	Exception)r   r
   r
   r   Ú_try_enable_svml¾   s>   ý
ùþþýrb   )>Ú__doc__rY   rJ   r   rH   r   Ú_versionr   Znumba.misc.init_utilsr   r   r   Z
numba.corer   r   Znumba.misc.specialr    r!   r"   r#   r$   r%   r&   r'   Znumba.core.errorsr)   Znumba.core.typesZnumba.core.decoratorsr*   r+   r,   r-   r.   Znumba.np.ufuncr/   r0   r1   r2   r3   r4   r5   r6   Znumba.np.numpy_supportr7   r8   r9   Únumbar:   Znumba.core.withcontextsr;   rC   r<   Znumba.core.target_extensionZnumba.typedrB   Ú__all__rN   rP   rT   rb   rI   Z
USING_SVMLr
   r
   r
   r   Ú<module>   sP    .
((

#/