Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LXD VM GPU passthrough test (New) #1690

Merged
merged 3 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions providers/gpgpu/bin/gpu_passthrough.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"config_cmds": [
"apt-get -q update -y",
"apt-get -q upgrade -y",
"apt-get -q install -y linux-generic ubuntu-drivers-common",
"ubuntu-drivers install --gpgpu",
"apt-get -q install -y ubuntu-drivers-common",
"ubuntu-drivers install --recommended",
],
},
},
Expand Down
17 changes: 17 additions & 0 deletions providers/gpgpu/units/jobs.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,24 @@ requires:
package.name == 'lxd' or package.name == 'lxd-installer' or snap.name == 'lxd'
category_id: gpgpu
plugin: shell
estimated_duration: 1m 45s
command: gpu_passthrough.py --vendor=nvidia --pci={pci_device_name} lxd
_purpose: Creates a LXD container and passes {pci_device_name} GPU through
_summary: Test LXD GPU passthrough on NVIDIA GPU {pci_device_name}
_template-summary: Test LXD GPU passthrough on NVIDIA GPU

unit: template
template-resource: graphics_card
template-filter: graphics_card.vendor == 'NVIDIA Corporation'
template-id: gpgpu/lxdvm-nvidia-gpu-passthrough-pci-device-name
id: gpgpu/lxdvm-nvidia-gpu-passthrough-{pci_device_name}
requires:
executable.name == 'lxc'
package.name == 'lxd' or package.name == 'lxd-installer' or snap.name == 'lxd'
category_id: gpgpu
plugin: shell
estimated_duration: 12m
command: gpu_passthrough.py --vendor=nvidia --pci={pci_device_name} lxdvm
_purpose: Creates a LXD virtual machine and passes {pci_device_name} GPU through
_summary: Test LXD VM GPU passthrough on NVIDIA GPU {pci_device_name}
_template-summary: Test LXD VM GPU passthrough on NVIDIA GPU
3 changes: 2 additions & 1 deletion providers/gpgpu/units/test-plan.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ _name: GPGPU Virtualization Passthrough Testing
_description:
Automated Tests for GPGPU Passthrough (non-graphical)
include:
gpgpu/lxd-nvidia-gpu-passthrough-pci-device-name certification-status=blocker
gpgpu/lxd-nvidia-gpu-passthrough-pci-device-name certification-status=blocker
gpgpu/lxdvm-nvidia-gpu-passthrough-pci-device-name certification-status=blocker
bootstrap_include:
graphics_card
executable
Expand Down
Loading