tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
magma: symlinkJoin -> CUDAToolkit_ROOT
Someone Serge
2 years ago
4df8614c
bfb24acb
+10
-27
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
science
math
magma
generic.nix
+10
-27
pkgs/development/libraries/science/math/magma/generic.nix
···
86
86
# "75" -> "750" Cf. https://bitbucket.org/icl/magma/src/f4ec79e2c13a2347eff8a77a3be6f83bc2daec20/CMakeLists.txt#lines-273
87
87
"${minArch'}0";
88
88
89
89
-
cuda-common-redist = with cudaPackages; [
90
90
-
libcublas # cublas_v2.h
91
91
-
libcusparse # cusparse.h
92
92
-
];
93
93
-
94
94
-
# Build-time dependencies
95
95
-
cuda-native-redist = symlinkJoin {
96
96
-
name = "cuda-native-redist-${cudaVersion}";
97
97
-
paths = with cudaPackages; [
98
98
-
cuda_cudart # cuda_runtime.h
99
99
-
cuda_nvcc
100
100
-
] ++ lists.optionals (strings.versionOlder cudaVersion "11.8") [
101
101
-
cuda_nvprof # <cuda_profiler_api.h>
102
102
-
] ++ lists.optionals (strings.versionAtLeast cudaVersion "11.8") [
103
103
-
cuda_profiler_api # <cuda_profiler_api.h>
104
104
-
] ++ cuda-common-redist;
105
105
-
};
106
106
-
107
107
-
# Run-time dependencies
108
108
-
cuda-redist = symlinkJoin {
109
109
-
name = "cuda-redist-${cudaVersion}";
110
110
-
paths = cuda-common-redist;
111
111
-
};
112
89
in
113
90
114
91
assert (builtins.match "[^[:space:]]*" gpuTargetString) != null;
···
128
105
ninja
129
106
gfortran
130
107
] ++ lists.optionals cudaSupport [
131
131
-
cuda-native-redist
108
108
+
cudaPackages.cuda_nvcc
132
109
];
133
110
134
111
buildInputs = [
135
112
libpthreadstubs
136
113
lapack
137
114
blas
138
138
-
] ++ lists.optionals cudaSupport [
139
139
-
cuda-redist
140
140
-
] ++ lists.optionals rocmSupport [
115
115
+
] ++ lists.optionals cudaSupport (with cudaPackages; [
116
116
+
cuda_cudart
117
117
+
libcublas # cublas_v2.h
118
118
+
libcusparse # cusparse.h
119
119
+
] ++ lists.optionals (strings.versionOlder cudaVersion "11.8") [
120
120
+
cuda_nvprof # <cuda_profiler_api.h>
121
121
+
] ++ lists.optionals (strings.versionAtLeast cudaVersion "11.8") [
122
122
+
cuda_profiler_api # <cuda_profiler_api.h>
123
123
+
]) ++ lists.optionals rocmSupport [
141
124
hip
142
125
hipblas
143
126
hipsparse