I have an RX 6700 XT and I needed to change an environment variable to make it work. Maybe something similar is needed for you GPU. I’d try googling something like “RX 9700 XT ROCM” or “RX 9700 XT ROCM no compatible GPUs were discovered” if you haven’t done that already.
It’s just basic biology, how do people not know this?