ROCm (v. 6.0 right now) is not supported on discrete AMD GPU if system has integrated GPU (iGPU) with architecture supported by ROCm (link).
Citation from Installation via AMDGPU installer — ROCm installation (Linux)
Warning
ROCm doesn’t currently support integrated graphics. Should your system have an AMD IGP installed, disable it in the BIOS prior to using ROCm. If the driver can enumerate the IGP, the ROCm runtime may crash the system, even if told to omit it via HIP_VISIBLE_DEVICES.
It is impossible to use ROCm 6.0 with (AMD GCN5.1 or AMD RDNA2 or RDNA3) iGPU + (AMD GCN5.1 or AMD RDNA2 or RDNA3) dGPU. That means you have to disable iGPU on AM5 Ryzen 7000 desktop series. Also that means all new laptops are incompatible with ROCm 6.0. Possibly it works OK with GCN5.0 iGPU - ROCm just ignores it. Otherwise it will be impossible to use ROCm 6.0 with AMD iGPU + AMD dGPU on any modern laptop.
It is possible to overcome this issue by patching AMD KFD (amdkfd) driver - link1, link2. But these patches are out of tree, i.e. no support is provided by Linux kernel developers and AMD both.
Other options: use virtual machine or Windows.
Integrated AMD GPU without discrete AMD GPU possibly works somehow.