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

"hipErrorNoBinaryForGpu" for rx 6700 xt (Navi 22) #1668

Closed
kvirikroma opened this issue Feb 8, 2022 · 15 comments
Closed

"hipErrorNoBinaryForGpu" for rx 6700 xt (Navi 22) #1668

kvirikroma opened this issue Feb 8, 2022 · 15 comments

Comments

@kvirikroma
Copy link

AFAIK, Navi 21 is supported by ROCm, and some users even were able to replace some values in source code to make a software think that Navi 22 is actually supported (and assuming they don't lie, it really works for them), but for some reason, there's no official support for rx 6700 xt yet. It would be really nice if you let me know if such support is planned. Thanks (=

@aoolmay
Copy link

aoolmay commented Feb 11, 2022

Some did report Navi working, i only got 6800xt/6900xt machines to work using the docker provided in installation manual. No bare metal experience. If you can afford the docker compromise, you should give it a try.

@xuhuisheng
Copy link
Contributor

6700 may be gfx1031, which is not supported official. You could check by /opt/rocm/bin/rocminfo.
If you want gfx1031, you could have to try to compile ROCm from source with AMDGPU_TARGETS=gfx1031.

@kvirikroma
Copy link
Author

@aoolmay Thanks for the advice.
I've tried docker already, but basically what I did to make it work is added host devices (/dev/dri and /dev/kfd) to the container and it worked for my old rx570 (with older versions of rocm). So I think it is the same as doing it on bare metal. At least an error for rx6700xt is the same with docker and without it (hipErrorNoBinaryForGpu).

@kvirikroma
Copy link
Author

@xuhuisheng Thank you for the advice, that sounds promising. I'll probably try it in a few days, but I don't know much about compiling ROCm. I have a lot of packages related to it installed in my system now, do I need to compile each of them separately? And where it would be correct to get sources from? I know about https://github.com/ROCmSoftwarePlatform/ but I'm not sure that I'm on the right way. Could you please send me some guide or documentation on compiling ROCm from the source?

@xuhuisheng
Copy link
Contributor

@kvirikroma
Here is my building script. https://github.com/xuhuisheng/rocm-build

@kvirikroma
Copy link
Author

@xuhuisheng thank you (=

@aoolmay
Copy link

aoolmay commented Feb 17, 2022

@kvirikroma @xuhuisheng I've just spotted fresh tensorflow-rocm package, version 2.8.0, in pip. Works on bare metal with 6800xt, installed the driver with "rocm,hip,opencl" and simple pip install tensorflow-rocm. I've yet to test 6900xt, don't have other NAVI cards, i hope it works for you on 6700xt.

@ROCmSupport
Copy link

Hi @kvirikroma
Thanks for reaching out.
ROCm does not support Navi22 and so can not comment on this.
For supported hardware, please check https://docs.amd.com/bundle/ROCm_Release_Notes_v5.0/page/About_This_Document.html
Thank you.

@kvirikroma
Copy link
Author

kvirikroma commented Apr 27, 2022

This is where I stuck after spending some time trying to compile ROCm and TF for gfx1031
ROCm/MIOpen#1528
Update: it is solved now, and I've successfully got ROCm working on my GPU (=

@arcaspo
Copy link

arcaspo commented May 13, 2022

@xuhuisheng Will your build script, https://github.com/xuhuisheng/rocm-build, work for Navi 23? I only see up to navi 21, so if i change AMDGPU_TARGETS to gfx1032 would the build work for the 6600xt?

@xuhuisheng
Copy link
Contributor

@arcaspo
You can have a try.
But there are some scripts for gfx1031 in MIOpen, you can refer here:
ROCm/MIOpen#1531

@arcaspo
Copy link

arcaspo commented May 13, 2022

Thanks, I’ll try later :)

@julianoes
Copy link

One more thing to check, make sure the user is in the video and render group.

sudo usermod -a -G video $LOGNAME
sudo usermod -a -G render $LOGNAME

Then logout and log back in, and check whether the groups are listed when running groups. In my case a reboot was required.

@SamuelMarks
Copy link

@xuhuisheng Open to testing with my Navi 22 [AMD Radeon(TM) RX 6850M XT 12GB GDDR6] on Linux kernel 6.2.8 running Ubuntu 22.10 (soon 23.04?). Going through your repo now.

(any tips from anyone here is most welcome)

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

No branches or pull requests

8 participants