forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrelease-cuda.nix
More file actions
176 lines (160 loc) · 4.8 KB
/
release-cuda.nix
File metadata and controls
176 lines (160 loc) · 4.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
/*
Test CUDA packages.
This release file is currently not tested on hydra.nixos.org
because it requires unfree software.
Test for example like this:
$ hydra-eval-jobs pkgs/top-level/release-cuda.nix -I .
*/
let
lib = import ../../lib;
cudaLib = (import ../development/cuda-modules/_cuda).lib;
in
{
# The platforms for which we build Nixpkgs.
supportedSystems ? [
"x86_64-linux"
"aarch64-linux"
],
variant ? "cuda",
# Attributes passed to nixpkgs.
nixpkgsArgs ? {
config = {
allowUnfreePredicate = cudaLib.allowUnfreeCudaPredicate;
"${variant}Support" = true;
inHydra = true;
# Don't evaluate duplicate and/or deprecated attributes
allowAliases = false;
};
__allowFileset = false;
},
...
}@args:
assert builtins.elem variant [
"cuda"
"rocm"
null
];
let
mkReleaseLib = import ./release-lib.nix;
release-lib = mkReleaseLib (
{ inherit supportedSystems nixpkgsArgs; } // lib.intersectAttrs (lib.functionArgs mkReleaseLib) args
);
inherit (release-lib)
linux
mapTestOn
packagePlatforms
pkgs
;
# Package sets to evaluate whole
# Derivations from these package sets are selected based on the value
# of their meta.{hydraPlatforms,platforms,badPlatforms} attributes
autoPackageSets = builtins.filter (lib.strings.hasPrefix "cudaPackages") (builtins.attrNames pkgs);
autoPackagePlatforms = lib.genAttrs autoPackageSets (pset: packagePlatforms pkgs.${pset});
# Explicitly select additional packages to also evaluate
# The desired platforms must be set explicitly here
explicitPackagePlatforms =
# This comment prevents nixfmt from changing the indentation level, lol
{
blas = linux;
blender = linux;
faiss = linux;
lapack = linux;
magma = linux;
mpich = linux;
openmpi = linux;
ucx = linux;
opencv = linux;
cctag = linux; # Failed in https://github.com/NixOS/nixpkgs/pull/233581
cholmod-extra = linux;
colmap = linux;
ctranslate2 = linux;
ffmpeg-full = linux;
firefox = linux;
firefox-unwrapped = linux;
firefox-beta = linux;
firefox-beta-unwrapped = linux;
firefox-devedition = linux;
firefox-devedition-unwrapped = linux;
freecad = linux;
gimp = linux;
gpu-screen-recorder = linux;
gst_all_1.gst-plugins-bad = linux;
jellyfin-ffmpeg = linux;
kdePackages.kdenlive = linux;
krita = linux;
lightgbm = linux;
llama-cpp = linux;
meshlab = linux;
mistral-rs = linux;
monado = linux; # Failed in https://github.com/NixOS/nixpkgs/pull/233581
noisetorch = linux;
obs-studio-plugins.obs-backgroundremoval = linux;
octave = linux; # because depend on SuiteSparse which need rebuild when cuda enabled
ollama = linux;
onnxruntime = linux;
openmvg = linux;
openmvs = linux;
opentrack = linux;
openvino = linux;
pixinsight = linux; # Failed in https://github.com/NixOS/nixpkgs/pull/233581
qgis = linux;
rtabmap = linux;
saga = linux;
suitesparse = linux;
sunshine = linux;
thunderbird = linux;
thunderbird-unwrapped = linux;
truecrack-cuda = linux;
tts = linux;
ueberzugpp = linux; # Failed in https://github.com/NixOS/nixpkgs/pull/233581
wyoming-faster-whisper = linux;
xgboost = linux;
python3Packages = {
catboost = linux;
cupy = linux;
faiss = linux;
faster-whisper = linux;
flashinfer = linux;
flax = linux;
gpt-2-simple = linux;
grad-cam = linux;
jaxlib = linux;
jax = linux;
keras = linux;
kornia = linux;
mmcv = linux;
mxnet = linux;
numpy = linux; # Only affected by MKL?
onnx = linux;
triton = linux;
openai-whisper = linux;
opencv4 = linux;
opencv4Full = linux;
opensfm = linux;
pycuda = linux;
pymc = linux;
pyrealsense2WithCuda = linux;
pytorch-lightning = linux;
scikit-image = linux;
scikit-learn = linux; # Only affected by MKL?
scipy = linux; # Only affected by MKL?
spacy-transformers = linux;
tensorflow = linux;
tensorflow-probability = linux;
tesserocr = linux;
tiny-cuda-nn = linux;
torchaudio = linux;
torch = linux;
torchvision = linux;
transformers = linux;
ttstokenizer = linux;
vidstab = linux;
vllm = linux;
};
};
# Explicitly specified platforms take precedence over the platforms
# automatically inferred in autoPackagePlatforms
allPackagePlatforms = lib.recursiveUpdate autoPackagePlatforms explicitPackagePlatforms;
jobs = mapTestOn allPackagePlatforms;
in
jobs