How to get comfyui to work with a setup of AMD integrated graphics CPU + AMD discrete GPU ?
Hello,
I have an AMD laptop
CPU: AMD Ryzen 9 5900HX
GPU: 6800M (12 GB VRAM)
RAM: 16 GB
Hooked via USB-C to an external monitor (not sure if this is relevant, maybe it would only work using the laptop's screen ?)
And running the latest Fedora Linux and ComfyUI
I have tried to install, reinstall comfyui in many different ways, I tried with things like pinokio, I tried to reinstall pytorch and other packages with specific rocm versions, I tried adding the user to different groups, I tried to mess with json or js files to add stuff like
HSA_OVERRIDE_GFX_VERSION: "10.3.0"
export HSA_OVERRIDE_GFX_VERSION=10.3.0
HIP_VISIBLE_DEVICES: "1"
ROCR_VISIBLE_DEVICES: "1"
But whatever I do does not seem to work. I run a lightweight test on purpose (e.g. generating an image that would take 30 seconds on 8gb VRAM), but:
to me, it seems like that instead of using the VRAM fully (altho some of it seems to be used, which is confusing), the RAM is fully used, which I think means that comfyui must use the CPU integrated graphics + RAM instead of the GPU VRAM.
Using the entire RAM eventually makes the app crash. I made a huge swap partition, and while it stopped crashing, something that should take 30 seconds to generate still does not generate after 20+ minutes (not surprising given how slow swap is). And even if it worked, it is still not an acceptable solution to not be able to use my fast VRAM.
(I am open to dual boot with windows if the OS is the issue).