Skip to content

Commit f72b0cb

Browse files
committed
log info.
1 parent f7e85ae commit f72b0cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/diffusers/utils/torch_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,11 @@ def apply_freeu(
154154
def get_torch_cuda_device_capability():
155155
if torch.cuda.is_available():
156156
device = torch.device("cuda")
157+
gpu_name = torch.cuda.get_device_name(device)
157158
compute_capability = torch.cuda.get_device_capability(device)
158159
compute_capability = f"{compute_capability[0]}.{compute_capability[1]}"
160+
print(f"{gpu_name=}, {compute_capability=}")
159161
return float(compute_capability)
160162
else:
161163
return None
164+

0 commit comments

Comments
 (0)