We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f02be7c commit d636bd7Copy full SHA for d636bd7
pytorch_lightning/trainer/trainer.py
@@ -1662,7 +1662,7 @@ def _log_device_info(self) -> None:
1662
num_ipus = self.ipus if self.ipus is not None else 0
1663
rank_zero_info(f"IPU available: {_IPU_AVAILABLE}, using: {num_ipus} IPUs")
1664
1665
- if torch.cuda.is_available() and isinstance(self.accelerator, GPUAccelerator):
+ if torch.cuda.is_available() and not isinstance(self.accelerator, GPUAccelerator):
1666
rank_zero_warn(
1667
"GPU available but not used. Set the gpus flag in your trainer `Trainer(gpus=1)` or script `--gpus=1`.",
1668
category=PossibleUserWarning,
0 commit comments