Germano Cavalcante commited on
Commit
685aa34
·
1 Parent(s): 8da7d27

Fix: GPU Checker: Wrong Radeon HD documentation

Browse files
Files changed (1) hide show
  1. routers/tool_gpu_checker.py +3 -2
routers/tool_gpu_checker.py CHANGED
@@ -34,7 +34,7 @@ def _check_amd(graphics_card_info):
34
  r"Radeon\s*(\(TM\)\s*)?Vega 8 (Graphics )?\(raven[^)]+\)": "this model belongs to the GCN 5th gen architecture (Vega)",
35
  r"Radeon\s*(\(TM\)\s*)?(Pro\s*)?WX\s*(5\d{3}\b)": "this model belongs to the GCN 4th gen architecture",
36
  r"FirePro": "FirePro models belongs to the GCN 1st gen or newer architecture",
37
- r"HD\s*7\d{3}": "HD 7XXX models belongs to the GCN 1st gen or newer architecture",
38
  r"(Radeon\s*)?RX\s*([5-7]\d{3})(M|X)?(\s*(XT|Series|S|XTX))?\b": "RX models belongs to the GCN 1st gen or newer architecture",
39
  r"(Radeon\s*)?(RX\s*)?6(3|4)0\b": "it has Polaris 23 chip that belongs to GCN 4th gen architecture",
40
  r"(Radeon\s*)?62(0|5)\b": "it has Polaris 24 chip that belongs to GCN 3st gen architecture",
@@ -59,6 +59,7 @@ def _check_amd(graphics_card_info):
59
 
60
  unsupported_models = {
61
  r"HD ([5-6])\d{3}": "HD {0}XXX models have TeraScale architecture that is older than GCN 1st gen",
 
62
  r"Radeon R5 (M)?2(2|3)\d(X)?\b": "Radeon R5 220/230 models belongs to Terascale 2 architecture that is older than GCN 1st gen",
63
  r"(AMD\s*ATI\s*)?Radeon\s*680M": "AMD ATI Radeon 680M has TeraScale architecture that is older than GCN 1st gen",
64
  # Add more model-to-architecture mappings as needed
@@ -198,6 +199,6 @@ def gpu_checker(gpu_info: str = ""):
198
 
199
 
200
  if __name__ == "__main__":
201
- gpu_info = "Intel(R) HD Graphics 5500"
202
  message = gpu_checker_get_message(gpu_info)
203
  print(message)
 
34
  r"Radeon\s*(\(TM\)\s*)?Vega 8 (Graphics )?\(raven[^)]+\)": "this model belongs to the GCN 5th gen architecture (Vega)",
35
  r"Radeon\s*(\(TM\)\s*)?(Pro\s*)?WX\s*(5\d{3}\b)": "this model belongs to the GCN 4th gen architecture",
36
  r"FirePro": "FirePro models belongs to the GCN 1st gen or newer architecture",
37
+ r"HD\s*(7[7-9]\d{2})": "HD {0} model belongs to the GCN 1st gen or newer architecture",
38
  r"(Radeon\s*)?RX\s*([5-7]\d{3})(M|X)?(\s*(XT|Series|S|XTX))?\b": "RX models belongs to the GCN 1st gen or newer architecture",
39
  r"(Radeon\s*)?(RX\s*)?6(3|4)0\b": "it has Polaris 23 chip that belongs to GCN 4th gen architecture",
40
  r"(Radeon\s*)?62(0|5)\b": "it has Polaris 24 chip that belongs to GCN 3st gen architecture",
 
59
 
60
  unsupported_models = {
61
  r"HD ([5-6])\d{3}": "HD {0}XXX models have TeraScale architecture that is older than GCN 1st gen",
62
+ r"HD\s*(7[3-6]\d{2})": "HD {0} model has TeraScale 2 architecture that is older than GCN 1st gen",
63
  r"Radeon R5 (M)?2(2|3)\d(X)?\b": "Radeon R5 220/230 models belongs to Terascale 2 architecture that is older than GCN 1st gen",
64
  r"(AMD\s*ATI\s*)?Radeon\s*680M": "AMD ATI Radeon 680M has TeraScale architecture that is older than GCN 1st gen",
65
  # Add more model-to-architecture mappings as needed
 
199
 
200
 
201
  if __name__ == "__main__":
202
+ gpu_info = "AMD Radeon HD 7660D"
203
  message = gpu_checker_get_message(gpu_info)
204
  print(message)