Skip to content

Commit f2d2fc4

Browse files
committed
Add GPU device passthrough for running rocminfo inside container
1 parent be3a8ef commit f2d2fc4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/test_native_linux_packages_install.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,15 @@ jobs:
196196
runs-on: ${{ github.repository_owner == 'ROCm' && (inputs.test_runs_on || 'linux-gfx942-1gpu-ccs-csp-ossci-rocm') || 'ubuntu-24.04' }}
197197
container:
198198
image: ${{ needs.prepare_install_context.outputs.container_image }}
199+
# GPU device passthrough — on OSSCI GPU runners. Required for rocminfo (and RDHC GPU checks) inside container.
199200
options: --ipc host
201+
--group-add video
202+
--device /dev/kfd
203+
--device /dev/dri
204+
--group-add 992
205+
--group-add 110
206+
--env-file /etc/podinfo/gha-gpu-isolation-settings
207+
--user 0:0
200208
env:
201209
REPO_URL: ${{ inputs.package_install_url }}
202210
GPG_KEY_URL: ${{ inputs.gpg_key_url || '' }}

0 commit comments

Comments
 (0)