AshleyYakeley / stable-diffusion-rocm

57 stars 8 forks source link

"hipErrorNoBinaryForGpu" error for rx 6700 xt (Navi 22) #4

Closed edwin-jones closed 2 years ago

edwin-jones commented 2 years ago

I get this error when running the image locally after a successful build:

Global seed set to 42
Loading model from models/ldm/stable-diffusion-v1/model.ckpt
Global Step: 470000
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"
Aborted (core dumped)

See: this issue for further details as to why.

Navi 22 isn't supported as of yet so don't trying running this on a 6700/6700 xt/6750 etc. I'm not asking or expecting this to be fixed, I just thought other people may want to be aware of this in case they hit the same issue and to avoid disappointment/anybody else raising this.

edwin-jones commented 2 years ago

Ah, seems you can work around this by setting this environment variable: HSA_OVERRIDE_GFX_VERSION=10.3.0 < This tricks ROCm into treating your card as a Navi 21 card. Please see this thread for more info. This is referenced in the youtube video in the readme.