-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build (and install) nvidia drivers in the nvidia_base_image
This is a bit hacky as we effectively rebuild the whole kernel while creating the system image so that we could get the kernel-headers package, which is required for DKMS to build the nvidia drivers. We don't use the built kernel but rather rely on the one nix built; this does trigger some warnings as the nix-built kernel and the nvidia modules have been built using different compilers which is dangerous territory; at some point in the future we need to see how we could build both the kernel and the modules in the same environment. (Which likely means not using nix to build the kernel.) For now, the modules can be loaded just fine and `nvidia-smi` detects the GPU. Bug: 289334314 Change-Id: I4b90b7207429e7729af74cd87c79ea8986f1de11
- Loading branch information
Showing
3 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters