-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from games-on-whales/dev-multi-gpu
Multi GPU and encoders improvements
- Loading branch information
Showing
36 changed files
with
1,332 additions
and
458 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
set -e | ||
export DEBIAN_FRONTEND=noninteractive | ||
|
||
apt-get update | ||
|
||
# Install debugger | ||
apt-get install -y gdb | ||
|
||
# Install wayland-protocols | ||
apt-get install -y wayland-protocols | ||
|
||
# Build and install nvtop | ||
apt-get install -y libdrm-dev libsystemd-dev libncurses5-dev libncursesw5-dev | ||
cd /tmp/ | ||
git clone https://github.com/Syllo/nvtop.git | ||
mkdir -p nvtop/build && cd nvtop/build | ||
CXX=/usr/bin/clang++ cmake .. -DNVIDIA_SUPPORT=ON -DAMDGPU_SUPPORT=ON -DINTEL_SUPPORT=ON | ||
cmake --build . --target install --config Release | ||
|
||
# Setup nvidia | ||
bash /etc/cont-init.d/30-nvidia.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"name": "wolf-dev", | ||
"build": { | ||
"context": "..", | ||
"dockerfile": "../docker/wolf.Dockerfile", | ||
"target": "wolf-builder" | ||
}, | ||
"postStartCommand": "bash /workspaces/wolf/.devcontainer/dev-setup.sh", | ||
"features": { | ||
"ghcr.io/nils-geistmann/devcontainers-features/zsh:0": { | ||
"plugins": [ | ||
"git", | ||
"zsh-autosuggestions", | ||
"history", | ||
"docker" | ||
] | ||
}, | ||
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": { | ||
"moby": true, | ||
"installDockerBuildx": false | ||
} | ||
}, | ||
"runArgs": [ | ||
"--network=host", | ||
"-v", | ||
"/tmp/sockets:/tmp/sockets:rw", | ||
"-v", | ||
"/etc/wolf:/etc/wolf:rw", | ||
"-v", | ||
"/run/udev:/run/udev:ro", | ||
"--rm" | ||
], | ||
"hostRequirements": { | ||
"gpu": true | ||
}, | ||
"privileged": true, | ||
"containerEnv": { | ||
"NVIDIA_DRIVER_CAPABILITIES": "all", | ||
"NVIDIA_VISIBLE_DEVICES": "all" | ||
}, | ||
"remoteEnv": { | ||
"XDG_RUNTIME_DIR": "/tmp/sockets", | ||
"WOLF_LOG_LEVEL": "DEBUG", | ||
"HOST_APPS_STATE_FOLDER": "/etc/wolf", | ||
"WOLF_CFG_FILE": "/etc/wolf/cfg/config.toml", | ||
"WOLF_PRIVATE_KEY_FILE": "/etc/wolf/cfg/key.pem", | ||
"WOLF_PRIVATE_CERT_FILE": "/etc/wolf/cfg/cert.pem", | ||
"WOLF_PULSE_IMAGE": "ghcr.io/games-on-whales/pulseaudio:master", | ||
"WOLF_RENDER_NODE": "/dev/dri/renderD128", | ||
"WOLF_STOP_CONTAINER_ON_EXIT": "TRUE", | ||
"WOLF_DOCKER_SOCKET": "/var/run/docker.sock", | ||
"WOLF_DOCKER_FAKE_UDEV_PATH": "/wolf/fake-udev", | ||
"RUST_BACKTRACE": "full", | ||
"RUST_LOG": "INFO", | ||
"GST_DEBUG": "2", | ||
"CMAKE_GENERATOR": "Ninja" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-vscode.cpptools-extension-pack", | ||
"ms-azuretools.vscode-docker", | ||
"github.vscode-github-actions", | ||
"jeff-hykin.better-cpp-syntax", | ||
"tamasfe.even-better-toml" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,6 @@ DartConfiguration.tcl | |
.run/ | ||
target | ||
Cargo.lock | ||
|
||
build/ | ||
.clj-kondo | ||
.lsp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.