From dad4bba1446390298e8bf1cbffef2acb56fd7752 Mon Sep 17 00:00:00 2001 From: Pedro Avalos Jimenez Date: Tue, 21 Jan 2025 17:43:04 -0500 Subject: [PATCH] Add LXDVM GPU passthrough test to GPGPU provider --- providers/gpgpu/units/jobs.pxu | 15 +++++++++++++++ providers/gpgpu/units/test-plan.pxu | 1 + 2 files changed, 16 insertions(+) diff --git a/providers/gpgpu/units/jobs.pxu b/providers/gpgpu/units/jobs.pxu index f9f1a06553..afb6e47b83 100644 --- a/providers/gpgpu/units/jobs.pxu +++ b/providers/gpgpu/units/jobs.pxu @@ -86,3 +86,18 @@ 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 +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 diff --git a/providers/gpgpu/units/test-plan.pxu b/providers/gpgpu/units/test-plan.pxu index 1a9b54e16f..8076ab5ae5 100644 --- a/providers/gpgpu/units/test-plan.pxu +++ b/providers/gpgpu/units/test-plan.pxu @@ -31,6 +31,7 @@ _description: Automated Tests for GPGPU Passthrough (non-graphical) include: gpgpu/lxd-nvidia-gpu-passthrough-index + gpgpu/lxdvm-nvidia-gpu-passthrough-pci-device-name certification-status=blocker bootstrap_include: graphics_card executable