-
Notifications
You must be signed in to change notification settings - Fork 4
/
overlays.nix
114 lines (99 loc) · 2.74 KB
/
overlays.nix
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
[
# top-level pkgs overlays
(self: super: {
magma = super.magma.override { mklSupport = true; };
openmpi = super.openmpi.override { cudaSupport = true; };
# batteries included :)
ffmpeg = super.ffmpeg-full.override {
nonfreeLicensing = true;
nvenc = true; # nvidia support
};
ffmpeg-full = super.ffmpeg-full.override {
nonfreeLicensing = true;
nvenc = true; # nvidia support
};
})
# python pkgs overlays
(self: super: {
python37Overrides = python37-self: python37-super: {
numpy = python37-super.numpy.override { blas = super.mkl; };
pytorch = python37-super.pytorch.override {
mklSupport = true;
openMPISupport = true;
cudaSupport = true;
buildNamedTensor = true;
cudaArchList = [
"5.0"
"5.2"
"6.0"
"6.1"
"7.0"
"7.5"
"7.5+PTX"
];
};
tensorflow_2 = python37-super.tensorflow_2.override {
cudaSupport = true;
cudatoolkit = super.cudatoolkit_10_1;
cudnn = super.cudnn_cudatoolkit_10_1;
# https://docs.nvidia.com/deeplearning/frameworks/tensorflow-user-guide/index.html
cudaCapabilities = [
# "5.0"
# "5.2"
# "6.0"
"6.1"
# "7.0"
# "7.5"
# "10.1"
];
sse42Support = true;
avx2Support = false;
fmaSupport = true;
};
tensorflow = python37-super.tensorflow.override {
cudaSupport = true;
cudatoolkit = super.cudatoolkit_10_1;
cudnn = super.cudnn_cudatoolkit_10_1;
# https://docs.nvidia.com/deeplearning/frameworks/tensorflow-user-guide/index.html
cudaCapabilities = [
"5.0"
"5.2"
"6.0"
"6.1"
"7.0"
"7.5"
];
sse42Support = true;
avx2Support = false;
fmaSupport = true;
};
tensorflow_avx2 = python37-super.tensorflow.override {
cudaSupport = true;
cudatoolkit = super.cudatoolkit_10_1;
cudnn = super.cudnn_cudatoolkit_10_1;
# https://docs.nvidia.com/deeplearning/frameworks/tensorflow-user-guide/index.html
cudaCapabilities = [
"5.0"
"5.2"
"6.0"
"6.1"
"7.0"
"7.5"
];
sse42Support = true;
avx2Support = true;
fmaSupport = true;
};
opencv3 = python37-super.opencv3.override {
enableCuda = true;
enableFfmpeg = true;
};
opencv4 = python37-super.opencv4.override {
enableCuda = true;
enableFfmpeg = true;
};
};
python37 =
super.python37.override { packageOverrides = self.python37Overrides; };
})
]