File tree 1 file changed +5
-10
lines changed
1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -648,8 +648,7 @@ def get_vram():
648
648
except ImportError :
649
649
pass
650
650
except Exception as e :
651
- error = f"NVIDIA VRAM detection failed: { e } "
652
- print (error )
651
+ pass
653
652
# AMD (Windows)
654
653
if os_name == "Windows" :
655
654
try :
@@ -660,8 +659,7 @@ def get_vram():
660
659
if vram_values :
661
660
return int (vram_values [0 ] / (1024 ** 3 ))
662
661
except Exception as e :
663
- error = f"AMD VRAM detection failed on Windows: { e } "
664
- print (error )
662
+ pass
665
663
# AMD (Linux)
666
664
if os_name == "Linux" :
667
665
try :
@@ -670,8 +668,7 @@ def get_vram():
670
668
if output .stdout .strip ().isdigit ():
671
669
return int (output .stdout .strip ()) // 1024
672
670
except Exception as e :
673
- error = f"AMD VRAM detection failed on Linux: { e } "
674
- print (error )
671
+ pass
675
672
# Intel (Linux Only)
676
673
intel_vram_paths = [
677
674
"/sys/kernel/debug/dri/0/i915_vram_total" , # Intel dedicated GPUs
@@ -684,8 +681,7 @@ def get_vram():
684
681
vram = int (f .read ().strip ()) // (1024 ** 3 )
685
682
return vram
686
683
except Exception as e :
687
- error = f"Intel VRAM detection failed: { e } "
688
- print (error )
684
+ pass
689
685
# macOS (OpenGL Alternative)
690
686
if os_name == "Darwin" :
691
687
try :
@@ -696,8 +692,7 @@ def get_vram():
696
692
except ImportError :
697
693
pass
698
694
except Exception as e :
699
- error = f"macOS VRAM detection failed: { e } "
700
- print (error )
695
+ pass
701
696
return 0
702
697
703
698
def get_sanitized (str , replacement = "_" ):
You can’t perform that action at this time.
0 commit comments