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

Fix GPGPU provider distribution (New) #1542

Draft
wants to merge 38 commits into
base: main
Choose a base branch
from

Conversation

pedro-avalos
Copy link
Collaborator

Description

Currently, the GPGPU provider depends on the user running a setup script after installing the provider. This script sets up the NVIDIA/AMD repositories to get the required packages from upstream (i.e. CUDA toolkit or ROCm). This has worked so far, but it is negatively affecting the way we test the provider, especially with automated setups.

Resolved issues

Resolves CHECKBOX-1519

Documentation

Tests

@pedro-avalos pedro-avalos added enhancement New feature or request QoL Quality of life improvement labels Oct 15, 2024
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.13%. Comparing base (2cc3162) to head (bacb951).
Report is 10 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1542       +/-   ##
===========================================
+ Coverage   48.00%   91.13%   +43.12%     
===========================================
  Files         371        3      -368     
  Lines       39837      327    -39510     
  Branches     6733       38     -6695     
===========================================
- Hits        19125      298    -18827     
+ Misses      19994       28    -19966     
+ Partials      718        1      -717     
Flag Coverage Δ
checkbox-ng ?
checkbox-support ?
contrib-provider-ce-oem ?
provider-base ?
provider-certification-client ?
provider-certification-server ?
provider-genio ?
provider-gpgpu 91.13% <ø> (+7.34%) ⬆️
provider-iiotg ?
provider-resource ?
provider-sru ?
release-tools ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pedro-avalos
Copy link
Collaborator Author

Ok, the next step should be to get the repository setup part of the gpu-setup script as a part of the deb packaging step. I'm thinking maybe a postinst script should do the trick?

@pedro-avalos
Copy link
Collaborator Author

I'm wondering if the compiling should actually be part of postinst instead of part of the manage.py build step...

@pedro-avalos pedro-avalos force-pushed the fix-gpgpu-provider-distribution branch from 19c5320 to aa87cdc Compare October 24, 2024 15:58
These files are created by the system being tested. They shouldn't be pushed to github.
Now gpu-setup is merely installing dependencies for the provider. Ideally, these dependencies will get pulled in by the snap or deb package, and the system will be able to compile the tests.

TOOD: With AMD tests being added, this Makefile will need to be skipped if the system being used does not have NVIDIA GPUs.
I'm curious to see if the packaging will succeed with what we have in the Ubuntu repositories. I'm skeptical, though.
The projects are downloaded to `/opt/` but the binaries are symlinked to `/usr/local/sbin`.

Need to test if the symlinks are able to find the necessary data files.
The preinst and postinst solution did not work. preinst does not run before the dependency handling occurs.
@pedro-avalos pedro-avalos force-pushed the fix-gpgpu-provider-distribution branch from 44f8e49 to d308544 Compare November 8, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request QoL Quality of life improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant