Merge pull request #275807 from KaiHa/pr-llama-cpp-assert
llama-cpp: assert that only one of the *Support arguments is true
This commit is contained in:
commit
51b96e8410
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@
|
|||
, pkg-config
|
||||
}:
|
||||
|
||||
assert lib.assertMsg
|
||||
(lib.count lib.id [openclSupport openblasSupport rocmSupport] == 1)
|
||||
"llama-cpp: exactly one of openclSupport, openblasSupport and rocmSupport should be enabled";
|
||||
|
||||
let
|
||||
cudatoolkit_joined = symlinkJoin {
|
||||
name = "${cudaPackages.cudatoolkit.name}-merged";
|
||||
|
|
Loading…
Reference in a new issue