mirror of
https://github.com/nod-ai/SHARK-Studio.git
synced 2026-01-08 21:38:04 -05:00
On your host install your Nvidia or AMD gpu drivers.
HOST Setup
Ubuntu 23.04 Nvidia
sudo ubuntu-drivers install
Install docker and the post-install to run as a user
Install Nvidia Container and register it. In Ubuntu 23.04 systems follow this
Build docker with :
docker build . -f Dockerfile-ubuntu-22.04 -t amdshark/dev-22.04:5.6 --build-arg=ROCM_VERSION=5.6 --build-arg=AMDGPU_VERSION=5.6 --build-arg=APT_PREF="Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600" --build-arg=IMAGE_NAME=nvidia/cuda --build-arg=TARGETARCH=amd64
Run with:
CPU
docker run -it docker.io/amdshark/dev-22.04:5.6
Nvidia GPU
docker run --rm -it --gpus all docker.io/amdshark/dev-22.04:5.6
AMD GPUs
docker run --device /dev/kfd --device /dev/dri docker.io/amdshark/dev-22.04:5.6
More AMD instructions are here