
    Αi                        % S SK Jr  S SKJrJr  S SKJr  \(       a  S SKJr  S SK	J
r
  \\\\4   rS\S'   S/r S   SS
 jjrg	)    )annotations)TYPE_CHECKINGUnion)	TypeAlias)CustomPlace)_customDevicePropertiesr   _CustomPlaceLikeget_device_propertiesNc                    [        S5      e)ai  
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)devices    ]/var/www/html/banglarbhumi/venv/lib/python3.13/site-packages/paddle/device/default_backend.pyr
   r
   #   s    2 	=     )N)r   z_CustomPlaceLike | Nonereturnr   )
__future__r   typingr   r   typing_extensionsr   paddler   paddle.base.libpaddler   strintr	   __annotations____all__r
    r   r   <module>r      s_    # ' '"="'	#i   '+#r   