Skip to content

nvidia-docker: glibc patch #93511

@tomberek

Description

@tomberek

Using virtualisation.docker.enableNvidia = true; activates the use of this patch, but the patch fails to apply to the new 2.31 glibc.

nix-build channel:nixos-unstable -A nvidia-docker
nix-build https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz -A nvidia-docker

Expected behavior
To build and use nvidia-docker

Additional context
Using nixos-unstable

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: pkgs.nvidia-docker
# a list of nixos modules affected by the problem
module: virtualization.docker.enableNvidia

Removing the patch from https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/virtualization/nvidia-docker/default.nix#L6 compiles, and I did a quick test with

docker run --gpus all --rm -it nvidia/cuda:10.2-base bash -c 'ln -sf /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.* /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1; ln -sf /usr/lib/x86_64-linux-gnu/libcuda.so.* /usr/lib/x86_64-linux-gnu/libcuda.so.1; nvidia-smi'

but did NOT test a patchelf-ed binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions