diff --git a/scripts/check_modules.py b/scripts/check_modules.py index 2c53c4e6..13551b0a 100644 --- a/scripts/check_modules.py +++ b/scripts/check_modules.py @@ -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()))