-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
cudaPackages: drop some runfile dependencies and fix a few builds #272063
Conversation
b2f2013
to
fa086c5
Compare
I'm getting the following eval error from EDIT: I suspect it's because it references error:
… while querying the derivation named 'dcgm-3.2.5'
… while calling the 'getAttr' builtin
at /derivation-internal.nix:19:19:
18| value = commonAttrs // {
19| outPath = builtins.getAttr outputName strict;
| ^
20| drvPath = strict.drvPath;
… while calling the 'derivationStrict' builtin
at /derivation-internal.nix:9:12:
8|
9| strict = derivationStrict drvAttrs;
| ^
10|
… while evaluating derivation 'dcgm-3.2.5'
whose name attribute is located at /home/connorbaker/.cache/nixpkgs-review/pr-272063/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:348:7
… while evaluating attribute 'EXTRA_CUDA_PATHS' of derivation 'dcgm-3.2.5'
at /home/connorbaker/.cache/nixpkgs-review/pr-272063/nixpkgs/pkgs/os-specific/linux/dcgm/default.nix:98:3:
97| # Add our paths to the CUDA paths so FindCuda.cmake can find them.
98| EXTRA_CUDA_PATHS = lib.concatMapStringsSep "\n" mkAppendCudaPaths cudaPackageSetByVersion;
| ^
99| prePatch = ''
… from call site
at /home/connorbaker/.cache/nixpkgs-review/pr-272063/nixpkgs/pkgs/os-specific/linux/dcgm/default.nix:98:22:
97| # Add our paths to the CUDA paths so FindCuda.cmake can find them.
98| EXTRA_CUDA_PATHS = lib.concatMapStringsSep "\n" mkAppendCudaPaths cudaPackageSetByVersion;
| ^
99| prePatch = ''
… while calling 'concatMapStringsSep'
at /home/connorbaker/.cache/nixpkgs-review/pr-272063/nixpkgs/lib/strings.nix:117:5:
116| # List of input strings
117| list: concatStringsSep sep (map f list);
| ^
118|
… while calling 'mkAppendCudaPaths'
at /home/connorbaker/.cache/nixpkgs-review/pr-272063/nixpkgs/pkgs/os-specific/linux/dcgm/default.nix:65:23:
64| # Builds CMake code to add CUDA paths for include and lib.
65| mkAppendCudaPaths = { version, pkgSet }:
| ^
66| let
… while evaluating derivation 'cuda-combined-10'
whose name attribute is located at /home/connorbaker/.cache/nixpkgs-review/pr-272063/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:348:7
… while evaluating attribute 'paths' of derivation 'cuda-combined-10'
at /home/connorbaker/.cache/nixpkgs-review/pr-272063/nixpkgs/pkgs/os-specific/linux/dcgm/default.nix:74:9:
73| name = "cuda-combined-${version}";
74| paths = pkgSet;
| ^
75| };
… while evaluating derivation 'cudatoolkit-10.2.89'
whose name attribute is located at /home/connorbaker/.cache/nixpkgs-review/pr-272063/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:348:7
… while evaluating attribute 'depsTargetTargetPropagated' of derivation 'cudatoolkit-10.2.89'
at /home/connorbaker/.cache/nixpkgs-review/pr-272063/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:403:7:
402| propagatedBuildInputs = elemAt (elemAt propagatedDependencies 1) 1;
403| depsTargetTargetPropagated = elemAt (elemAt propagatedDependencies 2) 0;
| ^
404|
… while evaluating derivation 'setup-cuda-hook'
whose name attribute is located at /home/connorbaker/.cache/nixpkgs-review/pr-272063/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:348:7
… while evaluating attribute 'cudartInclude' of derivation 'setup-cuda-hook'
at /home/connorbaker/.cache/nixpkgs-review/pr-272063/nixpkgs/pkgs/development/compilers/cudatoolkit/extension.nix:72:11:
71| # - the static library, which is in the static output
72| substitutions.cudartInclude = "${final.cuda_cudart.dev}";
| ^
73| substitutions.cudartLib = "${final.cuda_cudart.lib}";
error: attribute 'cuda_cudart' missing
at /home/connorbaker/.cache/nixpkgs-review/pr-272063/nixpkgs/pkgs/development/compilers/cudatoolkit/extension.nix:72:44:
71| # - the static library, which is in the static output
72| substitutions.cudartInclude = "${final.cuda_cudart.dev}";
| ^
73| substitutions.cudartLib = "${final.cuda_cudart.lib}";
https://github.com/NixOS/nixpkgs/pull/272063 failed to build: Failed to list packages: nix-env failed with exit code 1 |
Oh it really does still use cuda10. Give me a moment Note that this is only an issue until we've merged https://github.com/NixOS/nixpkgs/blob/874916d667e60009055cf36c7d550b85e5008a48/pkgs/development/compilers/cudatoolkit/hooks/setup-cuda-hook.sh#L102-L113 (just noticed a typo there, will fix) |
…ctures (compute_35)
The GitHub repo has been archived, the new thing is [cccl](https://github.com/nvidia/cccl)
0993f09
to
0bb153b
Compare
From the commit message: cudaPackages.setupCudaHook: rewrite cudartFlags, remove infinite recu… We don't need to add the extra nvcc flags to locate cudart when using |
Result of 47 packages marked as broken and skipped:
46 packages failed to build:
544 packages built:
|
|
Logs are available here: https://drive.google.com/drive/folders/1GgABhwa2ooKeZXMqf5He6PcyClNrE6cQ?usp=share_link Log archive: Result of 47 packages marked as broken and skipped:
46 packages failed to build:
544 packages built:
|
pkgs/development/compilers/cudatoolkit/hooks/setup-cuda-hook.sh
Outdated
Show resolved
Hide resolved
c820794
to
aec21f1
Compare
…rsion in cudatoolkit We don't need to add the extra nvcc flags to locate cudart when using cudatoolkit because it comes in the merged layout and nvcc doesn't have any trouble locating dependencies in the same prefix
Cf. explanations in NixOS#271078
aec21f1
to
18a2e51
Compare
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin staging-23.11
git worktree add -d .worktree/backport-272063-to-staging-23.11 origin/staging-23.11
cd .worktree/backport-272063-to-staging-23.11
git switch --create backport-272063-to-staging-23.11
git cherry-pick -x 5bda2ec626a4107f8adc3a7e58c16c0594c40d2c 3ee37e4356ef08d0a4b872e76031983288e40a80 e5b174bedb0af5f8da2be151f241b6d0174f6bfb 238138417344ba277e80ed451ce5f80f47dd86f2 5c2a368f87f0f3b0585255aaa5a2d1547da4c29c 361d7da37f7bb945a026cb15dcb5ec548bf87e95 6c63202052bb23151ca77b613357c790c5542e42 0dc161b2f806aa3d9dd7bee4f3dbb5289bc98eeb ee108108fcbe21999ecc1f36ac730c15376dc824 58819d631edc8ffa5658ef025e1b1c04903cc43f 31f1b517cdea429dc7a6c212ca650ea184c75a93 0c4b1fcfba531c8f33b416583053df2582a6843e 9cc210a7839f4e2aeb13bcadc96981daf8bc6501 3e37f3c9836da7cf6dd2c3d66a442cd8c74113b3 0f047c2372f2ebfaf67fad4aaacc131f5d879583 4c6d2b81cf4dd94398a6fc5b3727c685b439f4b3 9d729f260d023569a20c4339776e6b442a9f588c a7891f2adaf409a95b2c0d8e373270993951e69d 182e6b41d08d37c8eb817212b88b37b671abfb22 e084a6c648fecd473ff6190a5acac3369b292530 d031523a012688079e3bef68abaab2f8c5d099af 37ec2cb6b173c7d5b78ec704db533454f9bc84ba b9635cfa4d659ca652ab4c400988d6c8b1e453c0 18a2e518cdcef0764cfd7a96c39fdc0e7874e9fd |
I think I cannot build blender without cuda after this PR.
|
Description of changes
A bunch of fixes aggregated from #271078 and #269639. Idk the other two PRs are going to be merged, but this specific diff should be mostly a no-brainer
@NixOS/cuda-maintainers
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.