Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable ROCm support for some AMD GPUs (hipErrorNoBinaryForGpu) #7

Closed
turion opened this issue Nov 18, 2022 · 6 comments
Closed
Labels
documentation Improvements or additions to documentation

Comments

@turion
Copy link

turion commented Nov 18, 2022

I followed your instructions, but they didn't work:

$ nix develop .#invokeai.amd

$ python scripts/preload_models.py 
/opt/amdgpu/share/libdrm/amdgpu.ids: No such file or directory
/opt/amdgpu/share/libdrm/amdgpu.ids: No such file or directory
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"
Aborted (Speicherabzug geschrieben)
@turion
Copy link
Author

turion commented Nov 18, 2022

Workaround seems to be to prepend HSA_OVERRIDE_GFX_VERSION=10.3.0 (https://stackoverflow.com/questions/73575955/pytorch-hiperrornobinaryforgpu-unable-to-find-code-object-for-all-current-devi), I don't really understand what it does though.

@gbtb
Copy link
Owner

gbtb commented Nov 18, 2022

Hm, interesting. I have 6900xt and for me it works without an issue (except for slow start and warning about missing database or something). I'm curious, what is your GPU model ? Because it seems that for some GPUs are officially supported by ROCM, and some require this env variable to trick the driver into thinking that GPU has supported architecture - https://github.com/RadeonOpenCompute/ROCm/search?q=%27HSA_OVERRIDE_GFX_VERSION&type=issues .

@turion
Copy link
Author

turion commented Nov 18, 2022

Seems like I have a Ryzen 5650U with integrated GPU..? If that's a thing.

@gbtb gbtb added the documentation Improvements or additions to documentation label Nov 19, 2022
@gbtb gbtb changed the title Preloading models crashes How to enable ROCm support for some GPUs (hipErrorNoBinaryForGpu) Nov 19, 2022
@gbtb gbtb pinned this issue Nov 19, 2022
@gbtb
Copy link
Owner

gbtb commented Nov 19, 2022

Yep, you could expect some limitations on integrated GPUs.
Well, I'll pin this issue for reference to other folks who might face the same problem.

@gbtb gbtb closed this as completed Nov 19, 2022
@gbtb gbtb changed the title How to enable ROCm support for some GPUs (hipErrorNoBinaryForGpu) How to enable ROCm support for some AMD GPUs (hipErrorNoBinaryForGpu) Dec 4, 2022
@queezle42
Copy link

I have the same problem with an RX 5700 (i.e. a dedicated GPU).

HSA_OVERRIDE_GFX_VERSION=10.3.0 still works as a fix.

@Lord-Valen
Copy link

This should be in an FAQ section of the README imo.

@gbtb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants