Print GPU device information. Parameters ---------- device : cuda.core.Device CUDA device object
(device)
| 131 | |
| 132 | |
| 133 | def print_gpu_info(device) -> None: |
| 134 | """ |
| 135 | Print GPU device information. |
| 136 | |
| 137 | Parameters |
| 138 | ---------- |
| 139 | device : cuda.core.Device |
| 140 | CUDA device object |
| 141 | """ |
| 142 | print(f"Device: {device.name}") |
| 143 | cc = device.compute_capability |
| 144 | print(f"Compute Capability: {cc.major}.{cc.minor}") |