Repository: stable-diffusion-webui
Issue: [Bug]: AMD GPU not Recognized by Stable-Diffusion-WebUI
Labels: bug-report

### Checklist

- [x] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [x] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [X] The issue has been reported before but has not been fixed yet

### What happened?

Whenever running a prompt, the program does not use my AMD GPU or rOCM. i have checked all drivers and components are up to date, and regardless additional -args nothing fixes this issue.

### Steps to reproduce the problem

1. Install Program on AMD GPU Computer
2. Run Program (enter any associated arguments)
3. Run a prompt

### What should have happened?

This should be using my AMD GPU to generate images, but it is not. I have monitored with rocm-smi, and verified this is the case. On my original install, AMD GPU was utilized just fine, maybe 2-3 weeks ago.

### What browsers do you use to access the UI ?

Firefox

### Sysinfo

[sysinfo-2023-12-20-19-53.txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/13731662/sysinfo-2023-12-20-19-53.txt)


### Console logs

I have additional args in `webui-user.sh`:
```
export COMMANDLINE_ARGS="--skip-torch-cuda-test --precision full --no-half"
```
```
ᐉ stable-diffusion-web-ui-server

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on jaminW55 user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc_minimal.so.4
Python 3.11.6 (main, Nov 14 2023, 09:36:21) [GCC 13.2.1 20230801]
Version: v1.6.1
Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7
Launching Web UI with arguments: --skip-torch-cuda-test --precision full --no-half
/opt/stable-diffusion-web-ui/venv/lib/python3.11/site-packages/torch/cuda/__init__.py:611: UserWarning: Can't initialize NVML
  warnings.warn("Can't initialize NVML")
WARNING:xformers:WARNING[XFORMERS]: xFormers can't load C++/CUDA extensions. xFormers was built for:
    PyTorch 2.0.1+cu118 with CUDA 1108 (you have 2.1.1+cu121)
    Python  3.11.3 (you have 3.11.6)
  Please reinstall xformers (see https://github.com/facebookresearch/xformers#installing-xformers)
  Memory-efficient attention, SwiGLU, sparse and more won't be available.
  Set XFORMERS_MORE_DETAILS=1 for more details
No module 'xformers'. Proceeding without it.
Warning: caught exception 'No CUDA GPUs are available', memory monitor disabled
Loading weights [676f0d60c8] from /opt/stable-diffusion-web-ui/models/Stable-diffusion/dreamshaperXL_turboDpmppSDE.safetensors
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 3.9s (import torch: 1.1s, import gradio: 0.3s, setup paths: 1.4s, other imports: 0.3s, load scripts: 0.1s, create ui: 0.2s, gradio launch: 0.3s).
Creating model from config: /opt/stable-diffusion-web-ui/repositories/generative-models/configs/inference/sd_xl_base.yaml
Applying attention optimization: InvokeAI... done.
Model loaded in 2.5s (load weights from disk: 0.6s, create model: 0.2s, apply weights to model: 0.8s, apply float(): 0.6s, calculate empty prompt: 0.2s).

```

### Additional information

All drivers and rOCM are up to date.