§
    z”j¨  ã                  ó~   — U d dl mZ d dlmZmZ d dlmZ erd dlmZ d dl	m
Z
 eeeef         Zded<   dgZ	 ddd„Zd	S )é    )Úannotations)ÚTYPE_CHECKINGÚUnion)Ú	TypeAlias)ÚCustomPlace)Ú_customDevicePropertiesr   Ú_CustomPlaceLikeÚget_device_propertiesNÚdeviceú_CustomPlaceLike | NoneÚreturnr   c                ó    — t          d¦  «        ‚)a­  
    Return the properties of given custom device.

    Args:
        device (CustomPlace|str|int|None, optional): The device, the id of the device or
            the string name of device like 'metax_gpu:x' which to get the properties of the
            device from. Notice that this api only supports gpgpu devices. If device is None, the device is the current device.
            Default: None.

    Returns:
        _customDeviceProperties: The properties of the device which include device name,
            major compute capability, minor compute capability, global memory available
            and the number of multiprocessors on the device.

    Examples:
        .. code-block:: python

            >>> import paddle
            >>> paddle.device.get_device_properties('metax_gpu:0')
            >>> paddle.device.get_device_properties(0)
            >>> paddle.device.get_device_properties(paddle.CustomPlace('metax_gpu', 0))
    zoget_device_properties is not supported for this device type. This function is only available for gpgpu devices.)ÚRuntimeError)r   s    úm/lsinfo/ai/hellotax_ai/data_center/backend/venv/lib/python3.11/site-packages/paddle/device/default_backend.pyr
   r
   #   s   € õ2 ð	=ñô ð ó    )N)r   r   r   r   )Ú
__future__r   Útypingr   r   Útyping_extensionsr   Úpaddler   Úpaddle.base.libpaddler   ÚstrÚintr	   Ú__annotations__Ú__all__r
   © r   r   ú<module>r      sÓ   ðð #Ð "Ð "Ð "Ð "Ð "Ð "à 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'à 'Ð 'Ð 'Ð 'Ð 'Ð 'àð Ø"Ð"Ð"Ð"Ð"Ð"Ø=Ð=Ð=Ð=Ð=Ð=à"'ØØØð	ô#Ðð ð ð ñ ð ð€ð '+ðð ð ð ð ð ð r   