mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 08:13:22 +01:00
Update check_modules.py
This commit is contained in:
parent
f5e489ba87
commit
52761ad88c
@ -215,17 +215,15 @@ def get_config():
|
|||||||
def setup_amd_environment():
|
def setup_amd_environment():
|
||||||
if not os.access("/dev/kfd", os.W_OK):
|
if not os.access("/dev/kfd", os.W_OK):
|
||||||
print(
|
print(
|
||||||
f"#########################################################################\n"
|
"#########################################################################\n"
|
||||||
+ f"# EasyDiffusion has no write access to /dev/kfd. #\n"
|
+ "# EasyDiffusion has no write access to /dev/kfd. #\n"
|
||||||
+ f"#########################################################################\n"
|
+ "#########################################################################\n"
|
||||||
+ f"# #\n"
|
+ "\n"
|
||||||
+ f"# Without this, the ROCm driver will probably not be able to initialize #\n"
|
+ "Without this, the ROCm driver will probably not be able to initialize the GPU and EasyDiffusion will use the CPU for rendering.\n"
|
||||||
+ f"# the GPU and EasyDiffusion will use the CPU for rendering. #\n"
|
+ "\n"
|
||||||
+ f"# #\n"
|
+ "Follow the instructions on this site to configure the access:\n"
|
||||||
+ f"# Follow the instructions on this site to configure the access: #\n"
|
+ "https://github.com/easydiffusion/easydiffusion/wiki/AMD-on-Linux#access-permissions\n"
|
||||||
+ f"# https://github.com/easydiffusion/easydiffusion/wiki/AMD-on-Linux #\n",
|
+ "\n"
|
||||||
+ f"# #\n"
|
|
||||||
+ f"#########################################################################\n"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
gpus = list(filter(lambda x: ("amdgpu" in x), open("/proc/bus/pci/devices", "r").readlines()))
|
gpus = list(filter(lambda x: ("amdgpu" in x), open("/proc/bus/pci/devices", "r").readlines()))
|
||||||
|
Loading…
Reference in New Issue
Block a user