This commit is contained in:
Nicolas Patry 2024-09-16 11:16:03 +02:00
parent ec6fe324c6
commit 332e42f59a
No known key found for this signature in database
GPG Key ID: 64AF4752B2967863
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ jobs:
- name: Python tests.
run: |
sudo mkdir -p /run/opengl-driver/lib/
export NVIDIA=$(nix-build -E 'with import <nixpkgs> { config = { allowUnfree = true; }; }; linuxPackages.nvidia_x11')
export NVIDIA=$(nix build --print-out-paths .#nvidia-driver)
sudo find $NVIDIA . -name 'libcuda.so*' -exec ln -s {} /run/opengl-driver/lib/ \;
sudo find $NVIDIA . -name 'libnvidia-ml.so*' -exec ln -s {} /run/opengl-driver/lib/ \;
nix develop .#test --command pytest -svv integration-tests/ --release

View File

@ -149,6 +149,7 @@
};
};
packages.nvidia-driver = pkgs.linuxPackages.nvidia_x11;
packages.default = pkgs.writeShellApplication {
name = "text-generation-inference";
runtimeInputs = [