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

Add aws-k8s-1.21-nvidia variant #1799

Merged
merged 5 commits into from
Jan 26, 2022

Commits on Jan 24, 2022

  1. packages: change %_topdir rpm macro

    There are some rpm commands in the Dockerfile executed as 'root', which
    results in macros like `%{_builddir}` to point to `/root` instead of
    `/home/builder`. By changing `%_topdir` to `/home/builder`, macros that
    rely on this value will always point to the build directory.
    
    Signed-off-by: Arnaldo Garcia Rincon <agarrcia@amazon.com>
    arnaldo2792 committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    ad7be21 View commit details
    Browse the repository at this point in the history
  2. packages: add NVIDIA tesla 470 driver

    This commit adds the NVIDIA tesla 470 driver. The drivers are
    subpackages of `kmod-5.10-nvidia`, since we don't want to have a spec
    file per driver type per driver version. The spec file for
    `kmod-5.10-nvidia` holds the drivers that are compatible with the 5.10
    kernel. New spec files should be added for newer kernel and driver
    versions.
    
    The `kmod-5.10-nvidia` package provides a tmpfilesd conf file to create
    the lib modules directory where the kernel modules will be created.
    
    Each subpackage installs the libraries and binaries underneath
    `%{_cross_bindir}/nvidia/<type>` and `%{_cross_libdir}/nvidia/<type>`
    respectively to prevent collisions while building the subpackages.
    Kernel module objects are installed in
    `%{_cross_datadir}/nvidia/<type>/modules`, so that `driverdog` can
    compile them at runtime.
    
    Each subpackage provides a drop-in configuration file for containerd,
    that sets the `NVIDIA_PATH` environment variable. This environment
    variable must be set to the directory that contains the NVIDIA userland
    tools, which will be mounted on the containers by `libnvidia-container`.
    The environment variable is set for containerd, since
    `libnvidia-container` is called by the runtime to set up the containers.
    
    Signed-off-by: Arnaldo Garcia Rincon <agarrcia@amazon.com>
    arnaldo2792 committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    116efb1 View commit details
    Browse the repository at this point in the history
  3. containerd: add configuration for NVIDIA runtime

    The *-nvidia variants use a different runtime instead of runc to inject
    prestart hooks using shimpei
    
    Signed-off-by: Arnaldo Garcia Rincon <agarrcia@amazon.com>
    arnaldo2792 committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    75541bc View commit details
    Browse the repository at this point in the history
  4. actions: add matrix fetch-upstream variable

    The `fetch-upstream` variable is be used to fetch upstream sources when
    they aren't provided in the lookaside cache.
    
    Signed-off-by: Arnaldo Garcia Rincon <agarrcia@amazon.com>
    arnaldo2792 committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    8896f88 View commit details
    Browse the repository at this point in the history
  5. variants: add aws-k8s-1.21-nvidia

    Signed-off-by: Arnaldo Garcia Rincon <agarrcia@amazon.com>
    arnaldo2792 committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    54415cb View commit details
    Browse the repository at this point in the history