Skip to content

building for target webgpu results in "ValueError: At least one GPU backend is expected to be enabled" #28

@Abdull

Description

@Abdull

Using version https://github.com/mlc-ai/web-stable-diffusion/tree/ce0c2fbd0fffd7ee39e7be9da34052a8809d98db

environment: Ubuntu 22 LTS server without graphics card.

Executing

python3 build.py --target webgpu

causes the following error:

Traceback (most recent call last):
  File "build.py", line 153, in <module>
    torch_dev_key = utils.detect_available_torch_device()
  File "web_stable_diffusion/utils.py", line 14, in detect_available_torch_device
    raise ValueError("At least one GPU backend is expected to be enabled")
ValueError: At least one GPU backend is expected to be enabled

See

raise ValueError("At least one GPU backend is expected to be enabled")
.

Is it possible to enable a GPU backend in torch even if the building system environment does not provide that GPU backend?

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