mirror of
https://github.com/DrewThomasson/ebook2audiobook.git
synced 2026-01-10 06:18:02 -05:00
...
This commit is contained in:
6
app.py
6
app.py
@@ -146,8 +146,6 @@ def detect_gpu()->str:
|
||||
if sys.platform.startswith('linux'):
|
||||
out = try_cmd('lspci')
|
||||
if 'nvidia' in out:
|
||||
msg = 'NVIDIA GPU detected but drivers missing → CPU'
|
||||
warn(msg)
|
||||
return 'cpu'
|
||||
|
||||
# ============================================================
|
||||
@@ -168,8 +166,6 @@ def detect_gpu()->str:
|
||||
if sys.platform.startswith('linux'):
|
||||
out = try_cmd('lspci')
|
||||
if 'amd' in out and 'vga' in out:
|
||||
msg = 'AMD GPU detected but ROCm missing → CPU'
|
||||
warn(msg)
|
||||
return 'cpu'
|
||||
|
||||
# ============================================================
|
||||
@@ -201,8 +197,6 @@ def detect_gpu()->str:
|
||||
return 'xpu'
|
||||
out = try_cmd('lspci')
|
||||
if 'intel' in out and 'vga' in out:
|
||||
msg = 'Intel GPU detected but XPU runtime missing → CPU'
|
||||
warn(msg)
|
||||
return 'cpu'
|
||||
|
||||
# ============================================================
|
||||
|
||||
Reference in New Issue
Block a user