Skip to content

Support for RocM (AMD) with comfyUI #173

Description

@Splizard

Get this error at the moment:

Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver

In theory, comfyUI should work with the following:

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.3

Activity

  1. Splizard commented on May 31, 2025

    @Splizard
    Author

    For reference, this docker compose works on my machine:
    https://github.com/hartmark/sd-rocm

  2. Splizard commented on May 31, 2025

    @Splizard
    Author

    adding this to compose.comfyui.yml and setting the version to latest-rocm makes it work.

      devices:
          - "/dev/kfd:/dev/kfd" # remove this line if running on non ROCm
          - "/dev/dri:/dev/dri"
  3. av commented on Sep 25, 2026

    @av
    Owner

    Current main already includes AMD/ROCm support for ComfyUI. On this Fedora AMD host, ./harbor.sh cmd --no-defaults comfyui selected services/compose.x.comfyui.rocm.yml; resolving that Compose stack produced image yanwk/comfyui-boot:rocm7 with both /dev/kfd and /dev/dri passed through. Both devices are present on this host. The default CUDA tag (cu130-slim-v2) is overridden by the ROCm overlay when /dev/kfd is detected, so the NVIDIA-driver error from the old setup should not occur. The documentation also covers comfyui.rocm_version for a custom image/tag. I verified the selected Compose configuration, but did not download and run the large ROCm image in this check; if the current image still fails on a particular AMD GPU, please share its model and the current docker logs harbor.comfyui --tail 100 output. The earlier latest-rocm workaround applied to the previous image, not the current default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions