17
17
rocmPackages ,
18
18
vulkan-headers ,
19
19
vulkan-loader ,
20
- clblast ,
21
20
useBlas ? builtins . all ( x : ! x ) [
22
21
useCuda
23
22
useMetalKit
24
- useOpenCL
25
23
useRocm
26
24
useVulkan
27
25
] && blas . meta . available ,
28
26
useCuda ? config . cudaSupport ,
29
- useMetalKit ? stdenv . isAarch64 && stdenv . isDarwin && ! useOpenCL ,
27
+ useMetalKit ? stdenv . isAarch64 && stdenv . isDarwin ,
30
28
useMpi ? false , # Increases the runtime closure size by ~700M
31
- useOpenCL ? false ,
32
29
useRocm ? config . rocmSupport ,
33
30
useVulkan ? false ,
34
31
llamaVersion ? "0.0.0" , # Arbitrary version, substituted by the flake
56
53
++ lib . optionals useCuda [ "CUDA" ]
57
54
++ lib . optionals useMetalKit [ "MetalKit" ]
58
55
++ lib . optionals useMpi [ "MPI" ]
59
- ++ lib . optionals useOpenCL [ "OpenCL" ]
60
56
++ lib . optionals useRocm [ "ROCm" ]
61
57
++ lib . optionals useVulkan [ "Vulkan" ] ;
62
58
@@ -198,7 +194,6 @@ effectiveStdenv.mkDerivation (
198
194
optionals effectiveStdenv . isDarwin darwinBuildInputs
199
195
++ optionals useCuda cudaBuildInputs
200
196
++ optionals useMpi [ mpi ]
201
- ++ optionals useOpenCL [ clblast ]
202
197
++ optionals useRocm rocmBuildInputs
203
198
++ optionals useBlas [ blas ]
204
199
++ optionals useVulkan vulkanBuildInputs ;
@@ -210,7 +205,6 @@ effectiveStdenv.mkDerivation (
210
205
( cmakeBool "CMAKE_SKIP_BUILD_RPATH" true )
211
206
( cmakeBool "GGML_NATIVE" false )
212
207
( cmakeBool "GGML_BLAS" useBlas )
213
- ( cmakeBool "GGML_CLBLAST" useOpenCL )
214
208
( cmakeBool "GGML_CUDA" useCuda )
215
209
( cmakeBool "GGML_HIPBLAS" useRocm )
216
210
( cmakeBool "GGML_METAL" useMetalKit )
@@ -254,7 +248,6 @@ effectiveStdenv.mkDerivation (
254
248
useCuda
255
249
useMetalKit
256
250
useMpi
257
- useOpenCL
258
251
useRocm
259
252
useVulkan
260
253
;
@@ -281,7 +274,7 @@ effectiveStdenv.mkDerivation (
281
274
# Configurations we don't want even the CI to evaluate. Results in the
282
275
# "unsupported platform" messages. This is mostly a no-op, because
283
276
# cudaPackages would've refused to evaluate anyway.
284
- badPlatforms = optionals ( useCuda || useOpenCL ) lib . platforms . darwin ;
277
+ badPlatforms = optionals useCuda lib . platforms . darwin ;
285
278
286
279
# Configurations that are known to result in build failures. Can be
287
280
# overridden by importing Nixpkgs with `allowBroken = true`.
0 commit comments