Skip to content

Commit

Permalink
docker: add amd kfd device to install script
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Nov 15, 2024
1 parent 0871898 commit 3e09162
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions install/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ services:
# hardware accelerated video decoding, opencl, etc.
# "/dev/dri:/dev/dri",

# AMD GPU
# "/dev/kfd:/dev/kfd",

# uncomment below as necessary.
# zwave usb serial device

Expand Down
6 changes: 5 additions & 1 deletion install/docker/install-scrypted-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,14 @@ echo "Created $DOCKER_COMPOSE_YML"

if [ -z "$SCRYPTED_LXC" ]
then
if [ -d /dev/dri ]
if [ -e /dev/dri ]
then
sed -i 's/'#' "\/dev\/dri/"\/dev\/dri/g' $DOCKER_COMPOSE_YML
fi
if [ -e /dev/kfd ]
then
sed -i 's/'#' "\/dev\/kfd/"\/dev\/kfd/g' $DOCKER_COMPOSE_YML
fi
else
# uncomment lxc specific stuff
sed -i 's/'#' lxc //g' $DOCKER_COMPOSE_YML
Expand Down

0 comments on commit 3e09162

Please sign in to comment.