-
Notifications
You must be signed in to change notification settings - Fork 108
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
Raven Ridge/APUs #879
Comments
Waiting for hcc/hip to use ROCm tensorflow too. Understandably dev team has higher priorities like "selling" ROCm to datacenters: |
I think ROCm for APU has actually been supported using Linux kernel 4.20 + a special docker image with APU patches, whose gcnArch is recognized as |
I’m having the same trouble on my gfx902 @ghostplant can you share more details on the docker image with APU patches . |
@rohitsharma123123 Firstly, you should have Ubuntu 18.04, then upgrade your linux kernel to 5.0 for your system. Then install rocm-2.0-with-gfx902-patched from here: https://github.com/ghostplant/public/releases/download/ubuntu/ubuntu_bionic-rocm2_gfx902.tar.gz After that, you can compile any HIP sources in this environment which is executable on gfx902. If you don't want to recompile them by yourself. here is a pre-built tensorflow-rocm with gfx902 device code added: https://github.com/ghostplant/public/releases/download/ubuntu/tensorflow-1.12.0_gfx902-cp36-cp36m-linux_x86_64.whl |
Thank you so much @ghostplant |
@ghostplant my current installation is 16.04, I’m guessing that shouldn’t be a problem when installing/compiling rocm as its supported ? My work is also focused mainly on Pytorch , is there a Pytorch-rocm installation available or do i need to rebuild them ? |
@rohitsharma123123 If you use 16.04, upgrade kernel to 5.0 is still needed, and you can download a 18.04 docker image and install packages inside. I don't have pre-built pytorch-rocm for gfx902. |
@rohitsharma123123 Actually, gfx902 performs only about 20x faster than single CPU thread, so you should not expect it can do much useful work. |
Ok @ghostplant will try it out or else will install 18.04 |
@ghostplant have you documented your steps for patching to create these gfx902 builds? I'd like to rebuild the latest tensorflow with this support. Thanks. |
You can use https://github.com/ghostplant/public/releases/download/ubuntu/ubuntu_bionic-rocm2_gfx902.tar.gz to create a ubuntu:18.04 docker image, then inside the image, you can follow standard way to compile latest https://github.com/ROCmSoftwarePlatform/tensorflow-upstream. Might have some slight failures during the compilation since the gfx902 build only works and matches ROCm 2.0 API. |
Thanks. I was actually looking for your patches you used to build hcc, hip and rocm for that docker image. I started down that path and then found this thread, was hoping if you still had them I could build on your work rather than re-investigating. |
@ourhut you can find ROCm 2.6 for APUs (Carrizo, Raven Ridge, etc gfx801, gfx902) together with TensorFlow 1.14.1 wheel here, https://bruhnspace.com/rocm-apu/ |
freddybc/ghostplant: can either of you post the branches/patches you're using to build these debs? |
@freddybc @ghostplant They do not work out of box on my setup. Could you release the patches so that I can hack them? |
I understand APUs are officially not supported, but as of rocm 1.9/kernel 4.19 the runtime, thunk, opencl and amdkfd components are now in place; the biggest missing piece is
hcc
(and therefore HIP).Asking for clarity on whether there are any plans to make
hcc
functional on APUs, and if so, some kind of order of magnitude on time.Rationale-wise, we are early stage evaluating these chips for our devices, and have existing code that would hugely benefit from HIP support (not to mention hc seems an enjoyable language to code in), not to mention the benefit of access to the NN frameworks supported via
hcc
.The text was updated successfully, but these errors were encountered: