def getDeviceIdListForCard(card_id=-1) -> list:
    r"""Returns the device list of card_id.
    By default, return device list of the card which contains max number of devices."""
    if hasattr(intel_extension_for_pytorch._C, "_getDeviceIdListForCard"):
        if is_initialized():
            return intel_extension_for_pytorch._C._getDeviceIdListForCard(card_id)
        else:
            return intel_extension_for_pytorch._C._prefetchDeviceIdListForCard(card_id)
    else:
        return []
Returns the device list of card_id.
    By default, return device list of the card which contains max number of devices.
intel_extension_for_pytorch/xpu/__init__.py