Skip to content

[Bug]: GPU not available #118

@TacitTactics

Description

@TacitTactics

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

I am unable to find the option GPU when attempting to run "Accelerate with OpenVINO" script. I am only provided the CPU option.
image

I know that my system can see the GPU because I am running non-graphics GPU and the output of inxi is :

Graphics: Device-1: Intel DG2 [Arc A770] vendor: ASRock driver: i915 v: kernel arch: Gen-12.7 pcie: speed: 2.5 GT/s lanes: 1 ports: active: DP-1,HDMI-A-3,HDMI-A-4 empty: DP-2, DP-3, DP-4, HDMI-A-1, HDMI-A-2 bus-ID: 04:00.0 chip-ID: 8086:56a0 class-ID: 0300

I followed the steps from the install page.
image

Steps to reproduce the problem

Make sure Python version is 3.10+

python -m venv sd_env
source sd_env/bin/activate
git clone https://github.com/openvinotoolkit/stable-diffusion-webui.git
cd stable-diffusion-webui

export PYTORCH_TRACING_MODE=TORCHFX
export COMMANDLINE_ARGS="--skip-torch-cuda-test --precision full --no-half"

Launch the WebUI

./webui.sh

What should have happened?

I should be able to select GPU as device

Sysinfo

sysinfo-2024-08-31-21-33.txt

What browsers do you use to access the UI ?

Mozilla Firefox

Console logs

(sd_env) tacit@Benlizar:~/stable-diffusion-webui$ ./webui.sh

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on tacit user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
python venv already activate or run without venv: /home/tacit/sd_env
################################################################

################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc_minimal.so.4
fatal: No names found, cannot describe anything.
Python 3.10.14 (main, Apr 27 2024, 21:17:55) [GCC 13.2.0]
Version: 1.6.0
Commit hash: e5a634da06c62d72dbdc764b16c65ef3408aa588
Launching Web UI with arguments: --skip-torch-cuda-test --precision full --no-half --device-id 1 --listen --api --enable-insecure-extension-access
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Warning: caught exception 'Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx', memory monitor disabled
Loading weights [31e35c80fc] from /home/tacit/stable-diffusion-webui/models/Stable-diffusion/_SDXL_1_0/sd_xl_base_1.0.safetensors
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 3.8s (import torch: 1.1s, import gradio: 0.3s, setup paths: 0.4s, other imports: 0.2s, load scripts: 1.2s, create ui: 0.2s, gradio launch: 0.2s).
Creating model from config: /home/tacit/stable-diffusion-webui/repositories/generative-models/configs/inference/sd_xl_base.yaml
Applying attention optimization: InvokeAI... done.
Model loaded in 2.4s (load weights from disk: 0.6s, create model: 0.4s, apply weights to model: 0.5s, apply float(): 0.6s, calculate empty prompt: 0.2s).

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions