Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The multi-stage build has too many stages. During the installation of the
amggpu-dkms
package, the modules are built and installed in/lib/modules/${KERNEL_VERSION}
. If the installation of the package is done in thedriver-toolkit
image, the extra dependencies are very limited. This change removes thesource
stage and installs theamdgpu-dkms
package on top ofdriver-toolkit
.The
amdgpu-dkms
packages installs the modules in/lib/modules/${KERNEL_VERSION}/extra
and these are the only modules in that folder. Theamdgpu-dkms-firmware
package is installed as a dependency ofadmgpu-dkms
and it installs the firwmare files in/lib/firmware/updates/amdgpu·
. So, this change removes the in-treeamdgpu
modules and firmware, then copies the ones generated by DKMS in thebuilder
stage.The change also moves the repository definitions to the
repos.d
folder and adds the AMD public key to verify the signatures of the AMD RPMs.The users call a wrapper script called
ilab
to hide theinstructlab
container image and the command line options. This change copies the file fromnvidia-bootc
and adjusts the logic. The main change is that/dev/kfd
and/dev/dri
devices are passed to the container, instead ofnvidia.com/gpu=all
. Theilab
wrapper is copied in theamd-bootc
image.The Makefile is also modified to reflect these changes.