Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
738a8d12
Commit
738a8d12
authored
Dec 24, 2023
by
Daniel Hiltgen
Browse files
Rename the ollama cmakefile
parent
d966b730
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
llm/llama.cpp/CMakeLists.txt
llm/llama.cpp/CMakeLists.txt
+0
-0
llm/llama.cpp/gen_common.sh
llm/llama.cpp/gen_common.sh
+2
-2
llm/llama.cpp/gen_windows.ps1
llm/llama.cpp/gen_windows.ps1
+2
-2
No files found.
llm/llama.cpp/
ollama
.txt
→
llm/llama.cpp/
CMakeLists
.txt
View file @
738a8d12
File moved
llm/llama.cpp/gen_common.sh
View file @
738a8d12
...
...
@@ -26,8 +26,8 @@ git_module_setup() {
apply_patches
()
{
# Wire up our CMakefile
if
!
grep
ollama
.txt
gguf/examples/server/CMakeLists.txt
;
then
echo
'include (../../../ollama
.txt)
'
>>
gguf/examples/server/CMakeLists.txt
if
!
grep
ollama gguf/examples/server/CMakeLists.txt
;
then
echo
'include (../../../
CMakeLists.txt) #
ollama'
>>
gguf/examples/server/CMakeLists.txt
fi
# Avoid duplicate main symbols when we link into the cgo binary
sed
-e
's/int main(/int __main(/g'
<./gguf/examples/server/server.cpp
>
./gguf/examples/server/server.cpp.tmp
&&
...
...
llm/llama.cpp/gen_windows.ps1
View file @
738a8d12
...
...
@@ -25,8 +25,8 @@ function git_module_setup {
function
apply_patches
{
# Wire up our CMakefile
if
(
!
(
Select-String
-Path
"gguf/examples/server/CMakeLists.txt"
-Pattern
'ollama
.txt
'
))
{
Add-Content
-Path
"gguf/examples/server/CMakeLists.txt"
-Value
'include (../../../ollama
.txt)
'
if
(
!
(
Select-String
-Path
"gguf/examples/server/CMakeLists.txt"
-Pattern
'ollama'
))
{
Add-Content
-Path
"gguf/examples/server/CMakeLists.txt"
-Value
'include (../../../
CMakeLists.txt) #
ollama'
}
# Avoid duplicate main symbols when we link into the cgo binary
$content
=
Get-Content
-Path
"./gguf/examples/server/server.cpp"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment