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():
if not os.access("/dev/kfd", os.W_OK):
print(
f"#########################################################################\n"
+ f"# EasyDiffusion has no write access to /dev/kfd. #\n"
+ f"#########################################################################\n"
+ f"# #\n"
+ f"# Without this, the ROCm driver will probably not be able to initialize #\n"
+ f"# the GPU and EasyDiffusion will use the CPU for rendering. #\n"
+ f"# #\n"
+ f"# Follow the instructions on this site to configure the access: #\n"
+ f"# https://github.com/easydiffusion/easydiffusion/wiki/AMD-on-Linux #\n",
+ f"# #\n"
+ f"#########################################################################\n"
"#########################################################################\n"
+ "# EasyDiffusion has no write access to /dev/kfd. #\n"
+ "#########################################################################\n"
+ "\n"
+ "Without this, the ROCm driver will probably not be able to initialize the GPU and EasyDiffusion will use the CPU for rendering.\n"
+ "\n"
+ "Follow the instructions on this site to configure the access:\n"
+ "https://github.com/easydiffusion/easydiffusion/wiki/AMD-on-Linux#access-permissions\n"
+ "\n"
)
gpus = list(filter(lambda x: ("amdgpu" in x), open("/proc/bus/pci/devices", "r").readlines()))