
    ёiX#                     :   S SK r SrSrSrSrSrSrSrSrSr	Sr
SrSrSrSrSrS	rSrS
rSrSr/ r/ SQrSS jrS\4S jrS\4S jrS\4S jrS SK r Sr " S S\5      r\" \5      rS\4S jrS\4S jr S\4S jr!S\4S jr"S\4S jr#S\4S jr$S\4S jr%\	r&S r'g)    Nz3.3.030FalseT(cbf3469113cd76b7d5f4cba7b8d7d5f55d9e9911ON NoneOFF)cudacudnnncclshowxpuxpu_xrexpu_xcclxpu_xhpctensorrt
cuda_archshipreturnc                     [         (       aQ  [        S[        5        [        S[        5        [        S[        5        [        S[
        5        [        S[        5        O[        S[        5        [        S[        5        [        S[        5        [        S	[        5        [        S
[        5        [        S[        5        [        S[        5        [        S[        5        [        S[        5        [        S[         5        [        S["        5        g)a  Get the version of paddle if `paddle` package if tagged. Otherwise, output the corresponding commit id.

Returns:
    If paddle package is not tagged, the commit-id of paddle will be output.
    Otherwise, the following information will be output.

    full_version: version of paddle

    major: the major version of paddle

    minor: the minor version of paddle

    patch: the patch level version of paddle

    rc: whether it's rc version

    cuda: the cuda version of package. It will return `False` if CPU version paddle package is installed

    cudnn: the cudnn version of package. It will return `False` if CPU version paddle package is installed

    xpu_xre: the xpu xre version of package. It will return `False` if non-XPU version paddle package is installed

    xpu_xccl: the xpu xccl version of package. It will return `False` if non-XPU version paddle package is installed

    xpu_xhpc: the xpu xhpc version of package. It will return `False` if non-XPU version paddle package is installed

    cinn: the cinn version of package. It will return `False` if paddle package is not compiled with CINN

Examples:
    .. code-block:: python

        >>> import paddle

        >>> # Case 1: paddle is tagged with 2.2.0
        >>> paddle.version.show()
        >>> # doctest: +SKIP('Different environments yield different output.')
        full_version: 2.2.0
        major: 2
        minor: 2
        patch: 0
        rc: 0
        cuda: '10.2'
        cudnn: '7.6.5'
        xpu_xre: '4.32.0.1'
        xpu_xccl: '1.0.7'
        xpu_xhpc: '20231208'
        cinn: False
        >>> # doctest: -SKIP

        >>> # Case 2: paddle is not tagged
        >>> paddle.version.show()
        >>> # doctest: +SKIP('Different environments yield different output.')
        commit: cfa357e984bfd2ffa16820e354020529df434f7d
        cuda: '10.2'
        cudnn: '7.6.5'
        xpu_xre: '4.32.0.1'
        xpu_xccl: '1.0.7'
        xpu_xhpc: '20231208'
        cinn: False
        >>> # doctest: -SKIP
zfull_version:zmajor:zminor:zpatch:zrc:zcommit:zcuda:zcudnn:zhip:znccl:zxpu_xre:z	xpu_xccl:z	xpu_xhpc:zcinn:ztensorrt_version:zcuda_archs:N)	is_taggedprintfull_versionmajorminorpatchrccommitcuda_versioncudnn_versionhip_versionnccl_versionxpu_xre_versionxpu_xccl_versionxpu_xhpc_versioncinn_versiontensorrt_versioncompiled_cuda_archs     W/var/www/html/banglarbhumi/venv/lib/python3.13/site-packages/paddle/version/__init__.pyr   r      s    | yo|,hhheRi 	'< 	(M"	&+	'< 	*o&	+'(	+'(	'< 	
/0	-,-r+   c                      [         $ N)with_mklr*   r+   r,   mklr0   n       Or+   c                      [         $ r.   )with_hmlr*   r+   r,   hmlr4   q   r1   r+   c                      [         $ )ab  Get nccl version of paddle package.

Returns:
    string: Return the version information of cuda nccl. If paddle package is CPU version, it will return False.

Examples:
    .. code-block:: python

        >>> import paddle

        >>> paddle.version.nccl()
        >>> # doctest: +SKIP('Different environments yield different output.')
        '2804'

)r#   r*   r+   r,   r   r   t   
      r+   a  Get cuda version of paddle package.

    Returns:
        string: Return the version information of cuda. If paddle package is CPU version, it will return False.

    Examples:
        .. code-block:: python

            >>> import paddle

            >>> paddle.version.cuda()
            >>> # doctest: +SKIP('Different environments yield different output.')
            '10.2'

    c                   l   ^  \ rS rSrS\4U 4S jjrS\4S jrS\4S jr\S 5       r	\S 5       r
S	rU =r$ )
CudaVersion   versionc                 "   > [         TU ]  X5      $ r.   )super__new__)clsr:   	__class__s     r,   r=   CudaVersion.__new__   s    ws,,r+   r   c                     [        U 5      $ r.   )strselfs    r,   __call__CudaVersion.__call__   s     4yr+   c                     SU  S3$ )NzCudaVersion('z')r*   rC   s    r,   __repr__CudaVersion.__repr__   s    tfB''r+   c                     [         $ r.   )CUDA_FUNC_DOCrC   s    r,   __doc__CudaVersion.__doc__   s    r+   c                 4    [         R                  " / [        S9$ )N)
parametersreturn_annotation)inspect	SignaturerB   rC   s    r,   __signature__CudaVersion.__signature__   s      !
 	
r+   r*   )__name__
__module____qualname____firstlineno__rB   r=   rE   rH   propertyrL   rS   __static_attributes____classcell__)r?   s   @r,   r8   r8      sO    -c -# 
(# (   
 
r+   r8   c                      [         $ )aa  Get cudnn version of paddle package.

Returns:
    string: Return the version information of cudnn. If paddle package is CPU version, it will return False.

Examples:
    .. code-block:: python

        >>> import paddle

        >>> paddle.version.cudnn()
        >>> # doctest: +SKIP('Different environments yield different output.')
        '7.6.5'

)r!   r*   r+   r,   r   r      s
      r+   c                      [         $ )a  Get xpu version of paddle package. The API is deprecated now, please use xpu_xhpc() instead.

Returns:
    string: Return the version information of xpu. If paddle package is non-XPU version, it will return False.
Examples:
    .. code-block:: python
        >>> import paddle
        >>> paddle.version.xpu()
        >>> # doctest: +SKIP('Different environments yield different output.')
        '20230114'
r&   r*   r+   r,   r   r      s
     r+   c                      [         $ )aj  Get xpu xre version of paddle package.

Returns:
    string: Return the version information of xpu. If paddle package is non-XPU version, it will return False.

Examples:
    .. code-block:: python

        >>> import paddle

        >>> paddle.version.xpu_xre()
        >>> # doctest: +SKIP('Different environments yield different output.')
        '4.32.0.1'

)r$   r*   r+   r,   r   r      s
      r+   c                      [         $ )an  Get xpu xccl version of paddle package.

Returns:
    string: Return the version information of xpu xccl. If paddle package is non-XPU version, it will return False.

Examples:
    .. code-block:: python

        >>> import paddle

        >>> paddle.version.xpu_xccl()
        >>> # doctest: +SKIP('Different environments yield different output.')
        '1.0.7'

)r%   r*   r+   r,   r   r      
      r+   c                      [         $ )aq  Get xpu xhpc version of paddle package.

Returns:
    string: Return the version information of xpu xhpc. If paddle package is non-XPU version, it will return False.

Examples:
    .. code-block:: python

        >>> import paddle

        >>> paddle.version.xpu_xhpc()
        >>> # doctest: +SKIP('Different environments yield different output.')
        '20231208'

r^   r*   r+   r,   r   r      ra   r+   c                      [         $ )ag  Get CINN version of paddle package.

Returns:
    string: Return the version information of CINN. If paddle package is not compiled with CINN, it will return False.

Examples:
    .. code-block:: python

        >>> import paddle

        >>> paddle.version.cinn()
        >>> # doctest: +SKIP('Different environments yield different output.')
        False

)r'   r*   r+   r,   cinnrd     r6   r+   c                      [         $ )aw  Get TensorRT version of paddle package.

Returns:
    string: Return the version information of TensorRT. If paddle package is not compiled with TensorRT, it will return False.

Examples:
    .. code-block:: python

        >>> import paddle

        >>> paddle.version.tensorrt()
        >>> # doctest: +SKIP('Different environments yield different output.')
        False

)r(   r*   r+   r,   r   r     ra   r+   c                      [         $ )av  Get compiled cuda archs of paddle package.

Returns:
    list[int]: Return the compiled cuda archs if with gpu. If paddle package is not compiled with gpu, it will return "".

Examples:
    .. code-block:: python

        >>> import paddle

        >>> paddle.version.cuda_archs()
        >>> # doctest: +SKIP('Different environments yield different output.')
        [86]

)r)   r*   r+   r,   r   r   +  s
      r+   )r   N)(rQ   r   r   r   r   r#   r   r    r!   r"   r$   r%   r&   r   r   r/   r3   r'   r(   with_pip_cuda_librarieswith_pip_tensorrtr)   __all__r   rB   r0   r4   r   rK   r8   r   r   r   r   r   r   rd   r   r   r   r*   r+   r,   <module>rj      s-     	=    
vO.bS S c $ 
# 
. < s $S  $# $# $c $# $ r+   