/rocm-pytorch-gfx803

Copy of rocm/pytorch with gfx803 cards compiled in (see https://github.com/xuhuisheng/rocm-build/blob/develop/docs/gfx803.md)

Primary LanguageDockerfile

rocm-pytorch-gfx803

All credit for this goes to him and other's who discovered the bug!

Usage

  • cd to your machine learning project directory
  • sudo docker run -it -v $PWD:/projects --privileged --name pytorch --device=/dev/kfd --device=/dev/dri --group-add video jrcichra/rocm-pytorch-gfx803
  • This will mount the current directory into /projects. You can navigate there and try your pytorch project. It 'should' have GPU acceleration. I checked this with:
import torch
if torch.cuda.is_available():
    device = torch.device("cuda:0")
    print("Running on the GPU")
else:
    device = torch.device("cpu")
    print("Running on the CPU")

gfx803 support

  • @BishopWolf brought to my attention AMD is dropping support for gfx803 on rocm. See ROCm/ROCm#1353
  • I've disabled Github Actions on this repo. I'm not going to update this container for now