a
    þdu  ã                   @   sæ   d dl mZ d dlmZ d dlmZ d dlmZ	 d dl
mZ d dlmZ d dlmZ d dlmZ d d	lmZ eeed
œdd„Zeeed
œdd„Zedœdd„Zedœdd„Zeeed
œdd„Zeeed
œdd„Zeeed
œdd„ZdS )é    )ÚAny)Ú_parse_cpu_cores)Úis_cuda_available)Únum_cuda_devices)Ú_parse_tpu_devices)Ú_determine_root_gpu_device)Ú_parse_gpu_ids)Ú_parse_hpus)Úrank_zero_deprecation)ÚargsÚkwargsÚreturnc                  O   s   t dƒ t| i |¤ŽS )Nz·`pytorch_lightning.utilities.device_parser.parse_hpus` has been deprecated in v1.8.0 and will be removed in v2.0.0. This function is internal but you can copy over its implementation.)r
   Únew_parse_hpus©r   r   © r   úr/var/www/html/stable-diffusion-webui/venv/lib/python3.9/site-packages/pytorch_lightning/utilities/device_parser.pyÚ
parse_hpus   s    ÿr   c                  O   s   t dƒ t| i |¤ŽS )NzÆ`pytorch_lightning.utilities.device_parser.determine_root_gpu_device` has been deprecated in v1.8.0 and will be removed in v2.0.0. This function is internal but you can copy over its implementation.)r
   Únew_determine_root_gpu_devicer   r   r   r   Údetermine_root_gpu_device"   s    ÿr   )r   c                   C   s   t dƒ tƒ S )NzÅ`pytorch_lightning.utilities.device_parser.is_cuda_available` has been deprecated in v1.8.0 and will be removed in v2.0.0. Please use `lightning_fabric.accelerators.cuda.is_cuda_available` instead.)r
   Únew_is_cuda_availabler   r   r   r   r   *   s    ÿr   c                   C   s   t dƒ tƒ S )NzÃ`pytorch_lightning.utilities.device_parser.num_cuda_devices` has been deprecated in v1.8.0 and will be removed in v2.0.0. Please use `lightning_fabric.accelerators.cuda.num_cuda_devices` instead.)r
   Únew_num_cuda_devicesr   r   r   r   r   2   s    ÿr   c                  O   s   t dƒ t| i |¤ŽS )Nz¼`pytorch_lightning.utilities.device_parser.parse_cpu_cores` has been deprecated in v1.8.0 and will be removed in v2.0.0. This function is internal but you can copy over its implementation.)r
   Únew_parse_cpu_coresr   r   r   r   Úparse_cpu_cores:   s    ÿr   c                  O   s   t dƒ t| i |¤ŽS )Nzº`pytorch_lightning.utilities.device_parser.parse_gpu_ids` has been deprecated in v1.8.0 and will be removed in v2.0.0. This function is internal but you can copy over its implementation.)r
   Únew_parse_gpu_idsr   r   r   r   Úparse_gpu_idsB   s    ÿr   c                  O   s   t dƒ t| i |¤ŽS )Nz¼`pytorch_lightning.utilities.device_parser.parse_tpu_cores` has been deprecated in v1.8.0 and will be removed in v2.0.0. This function is internal but you can copy over its implementation.)r
   Únew_parse_tpu_coresr   r   r   r   Úparse_tpu_coresJ   s    ÿr   N)Útypingr   Z!lightning_fabric.accelerators.cpur   r   Z"lightning_fabric.accelerators.cudar   r   r   r   Z!lightning_fabric.accelerators.tpur   r   Z(lightning_fabric.utilities.device_parserr   r   r   r   Z"pytorch_lightning.accelerators.hpur	   r   Z%pytorch_lightning.utilities.rank_zeror
   r   r   ÚboolÚintr   r   r   r   r   r   r   Ú<module>   s   