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:
Nick Cao 2023-12-22 08:36:34 -05:00 committed by GitHub
commit 51b96e8410
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";