Update check_modules.py

This commit is contained in:
JeLuF 2023-09-13 13:45:21 +02:00 committed by GitHub
parent f5e489ba87
commit 52761ad88c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()))