Git Product home page Git Product logo

rocm-pytorch-gfx803-docker's Introduction

rocm-pytorch-gfx803-docker

A Docker image based on rocm/pytorch with support for gfx803(Polaris 20-21 (XT/PRO/XL); RX580; RX570; RX560) and Python 3.8

For ROCM 5.3.0

After creating container, you will be logged as sduser with activated python3.8 environment.

Supports docker and podman.

torch, torchvision and tensorflow-rocm packages are downloaded from https://github.com/xuhuisheng/rocm-gfx803

Every downloaded package should be in /packages.

Building image

podman build -t rocm-pytorch-gfx803 ./rocm-pytorch-gfx803-docker

Creating container

podman run -it --device=/dev/kfd --device=/dev/dri --net=host localhost/rocm-pytorch-gfx803

Not required, but recommended is -v /host:/container parameter. It is easier to work when you have easy access to files already in your system. /host can be any path on host and /container any path on container.

rocm-pytorch-gfx803-docker's People

Contributors

firstbober avatar interfect avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rocm-pytorch-gfx803-docker's Issues

Permission problems?

``Hi,

After trying to follow the steps to use your docker i have, so far, havent found a solution on how to use rocmiinfo (or anything that accesses rocm anyway) through the docker.

Currently i try the following:
podman run -it --device=/dev/kfd --device=/dev/dri --net=host --group-add=video --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $HOME/sddocker:/sddocker localhost/rocm-pytorch-gfx803

And then trying this:
(environ) sduser@HAL:~$ rocminfo ROCk module is loaded Unable to open /dev/kfd read-write: Permission denied root is not member of "nogroup" group, the default DRM access group. Users must be a member of the "nogroup" group or another DRM access group in order for ROCm applications to run successfully.

Which kind of... surprises me that is raises "root" rather than sduser.

Any ideas how to solve this?

url is expired error 404

cd /packages && dpkg -i rocblas_2.45.0.50300-63.20.04_amd64.deb && \
    python3.8 -m pip install torch-1.11.0a0+git503a092-cp38-cp38-linux_x86_64.whl && \
    python3.8 -m pip install torchvision-0.12.0a0+2662797-cp38-cp38-linux_x86_64.whl && \
    python3.8 -m pip install tensorflow_rocm-2.8.0-cp38-cp38-linux_x86_64.whl && \
    apt install -y liblmdb-dev libopencv-highgui-dev libopencv-contrib-dev libopenblas-dev python3.8-venv && \
    rm -rf rocblas_2.45.0.50300-63.20.04_amd64.deb && \
    rm -rf /var/lib/apt/lists && \

should add apt-get update before that code ,python3.8-venv url is expired, error 404

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.