Blender 3.4 with AMD GPU 22 drivers

You didn’t specify your Linux distro, GPU exact model and driver installation method.

You can verify ROCm installation with rocminfo or clinfo tools. Here is more comprehensive installation manual. Might be a little outdated, but its the best one I have found.
AMD user-facing documentation is fragmented and often confusing.

https://docs.amd.com/bundle/ROCm_Installation_Guidev5.0/page/How_To_Install_ROCm.html#_Installation_Methods