mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-22 00:03:20 +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():
|
||||
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()))
|
||||
|
Loading…
Reference in New Issue
Block a user