Print GPU name

This commit is contained in:
cmdr2 2022-09-11 10:59:45 +05:30
parent 3668c87e0d
commit 1d4b34c0dd

View File

@ -58,6 +58,7 @@ has_valid_gpu = False
force_full_precision = False
try:
gpu_name = torch.cuda.get_device_name(torch.cuda.current_device())
print('detected: ', gpu_name)
has_valid_gpu = True
force_full_precision = ('nvidia' in gpu_name.lower()) and ('1660' in gpu_name or ' 1650' in gpu_name) # otherwise these NVIDIA cards create green images
if force_full_precision: