-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
llama: replace cuda feature with env var
This commit removes the `cuda` feature and replaces it with an environment variable `LLM_CHAIN_CUDA`.It also adds an additional environment variable `LLM_CHAIN_CUDA_LIB_PATH` which should be set to the path of the CUDA library directory, and include link libraries required for CUDA. Finally `-fPIC` is added to `CMAKE_CUDA_FLAGS`. The motivation for this is that having the feature `cuda` was not working as this will cause the build to fail if infact the CUDA library is not installed. I think that this may not have been the case with earlier versions of llama.cpp and perhaps why this was not an issue before. Signed-off-by: Daniel Bevenius <[email protected]>
- Loading branch information
Showing
3 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,3 @@ readme = "README.md" | |
|
||
[build-dependencies] | ||
bindgen = "0.66" | ||
|
||
[features] | ||
cuda = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters