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

Make tests/gpu-container adapt to available HW #50

Merged
merged 11 commits into from
Dec 15, 2023

Conversation

simondeziel
Copy link
Member

@simondeziel simondeziel commented Dec 14, 2023

This was tested on rockman using:

PURGE_LXD=1 ./bin/local-run tests/gpu-container latest/edge

rockman has the particularity of having 3 GPUs, one onboard Matrox and 2x NVIDIA L40.

@simondeziel
Copy link
Member Author

@escabo with this, you should be able to run the tests/gpu-container unaltered on your own hardware, at least that's the theory and if that still requires modification to pass, I'd like to hear about it, thanks!

@tomponline tomponline merged commit 56b38f4 into canonical:main Dec 15, 2023
3 checks passed
@simondeziel simondeziel deleted the testflinger-queue branch December 15, 2023 14:23
@escabo
Copy link

escabo commented Dec 15, 2023

@escabo with this, you should be able to run the tests/gpu-container unaltered on your own hardware, at least that's the theory and if that still requires modification to pass, I'd like to hear about it, thanks!

I ran sudo bin/local-run tests/gpu-container latest/candidate and it failed.

The machine has secure boot and when I install the (Nvidia) driver manually, I have to go through creating a pw that I am asked on the next boot to register the new keys. Can/does the script work around this?

Also, the script installs 525 but if I run sudo ubuntu-drivers devices, the recommended one is 535. Could this be part of the script to avoid having to update the required version every so often?

If I install the driver manually, the test works! I had to install jq on the host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants