-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
cudaPackages: build redists from manifests and add CUDA 13 #437723
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
Changes from all commits
e64f451
d70f629
494a8d9
f5deefd
db1b553
c331103
763abd9
6f0ca9e
2e0c9f6
4f81b9b
ba2fa45
d2367f0
e0f1a53
5d39671
3ad342b
29ce053
ebd2e2a
cd53001
31dc7ef
d1f4bcd
a094eed
f3ceb79
0d87dea
7d7182b
51df369
d6b2dbb
f18468f
36a8a15
3b17f67
53f599e
016004a
48eda7f
072d508
d027f0a
7122833
fb03f6a
e8587db
66bde7d
7c69a31
3c604b1
c717006
b854a35
c6015a1
4d39211
3c216c9
5b43c7a
d637c40
75d424e
20f3fc3
09ea570
9602bfe
909949c
d21cad3
adcfdf7
02b3f48
26ad532
4252ef5
9c5a55e
af82ffc
ef442c3
43c7b5e
2ee10f4
1b88b73
e3adc1f
3a57a46
858797b
1fceb96
c8a2294
9c1181a
6abb73f
df2b636
0fc63e4
c1c2dd2
12ad245
04cfbd0
4cbdd81
a43503a
3728d48
1698512
a42e4a5
04512dc
68aefe6
4d389fb
88ea561
8d50fc5
2811ae3
bd217ed
c11ffb0
16b3926
c388529
6585059
14ce577
b0f246b
5dcd809
29d82a1
b90b6cd
218fe97
8af89d0
f71cd02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -434,9 +434,7 @@ stdenv'.mkDerivation (finalAttrs: { | |
| # They comment two licenses: GPLv2 and Blender License, but they | ||
| # say: "We've decided to cancel the BL offering for an indefinite period." | ||
| # OptiX, enabled with cudaSupport, is non-free. | ||
| license = | ||
| with lib.licenses; | ||
| [ gpl2Plus ] ++ lib.optional cudaSupport (unfree // { shortName = "NVidia OptiX EULA"; }); | ||
| license = with lib.licenses; [ gpl2Plus ] ++ lib.optional cudaSupport nvidiaCudaRedist; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Double check that Optix is licensed as a redistributable.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Come to think of it, there's an optical flow sdk expression somewhere in tree -- need to check the license on that one.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you find a confirmation? Is there an
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| platforms = [ | ||
| "aarch64-linux" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,7 @@ | |
| # enable internal X11 support via libssh2 | ||
| enableX11 ? true, | ||
| enableNVML ? config.cudaSupport, | ||
| nvml, | ||
| cudaPackages, | ||
| }: | ||
|
|
||
| stdenv.mkDerivation (finalAttrs: { | ||
|
|
@@ -110,8 +110,8 @@ stdenv.mkDerivation (finalAttrs: { | |
| ++ lib.optionals enableNVML [ | ||
| (runCommand "collect-nvml" { } '' | ||
| mkdir $out | ||
| ln -s ${lib.getDev nvml}/include $out/include | ||
| ln -s ${lib.getLib nvml}/lib/stubs $out/lib | ||
| ln -s ${lib.getOutput "include" cudaPackages.cuda_nvml_dev}/include $out/include | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there's also |
||
| ln -s ${lib.getOutput "stubs" cudaPackages.cuda_nvml_dev}/lib/stubs $out/lib | ||
| '') | ||
| ]; | ||
|
|
||
|
|
||
ConnorBaker marked this conversation as resolved.
Show resolved
Hide resolved
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make a note about why do this.
NOTE: Specifically not using
lib.getOutputhere because it would select theoutoutput ofopencv, which changes semantics sincemake-derivationuseslib.getDevon the dependency arrays, which won't touch derivations with specified outputs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that also raises the issue of whether the
lib.getOutputfamily of functions should be used within dependency arrays because they will select the.outoutput specifically as a fallback, when likely they should just return the derivation as is if the output doesn't exist.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Daaaamn, I think this was simply a bad design decision/omission on my part and ideally we'd maybe change the semantics of
getOutput...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, on a closer look, this should be
getFirstOutput [ "cxxdev" "dev" ]There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remember mkDerivation tries to get the dev output of all dependency arrays, no need to do it manually
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case
mkDerivationdoes not know which output is the dev output, an dit's not anmkDerivationorgetOutputbug, it's a python ecosystem bug, where it's abusingdev/propagatedBuildInputsfor the python wrapper