mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-25 17:55:09 +01:00
Don't use ROCm on Linux if an NVIDIA card is present
This commit is contained in:
parent
30a133bad9
commit
bf3df097b8
@ -82,7 +82,7 @@ def apply_torch_install_overrides(module_version: str):
|
|||||||
elif os_name == "Linux":
|
elif os_name == "Linux":
|
||||||
with open("/proc/bus/pci/devices", "r") as f:
|
with open("/proc/bus/pci/devices", "r") as f:
|
||||||
device_info = f.read()
|
device_info = f.read()
|
||||||
if "amdgpu" in device_info:
|
if "amdgpu" in device_info and "nvidia" not in device_info:
|
||||||
index_url = "https://download.pytorch.org/whl/rocm5.4.2"
|
index_url = "https://download.pytorch.org/whl/rocm5.4.2"
|
||||||
|
|
||||||
return module_version, index_url
|
return module_version, index_url
|
||||||
|
Loading…
Reference in New Issue
Block a user