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
efe040f8
Unverified
Commit
efe040f8
authored
Feb 21, 2024
by
Jeffrey Morgan
Committed by
GitHub
Feb 21, 2024
Browse files
reset with `init_vars` ahead of each cpu build in `gen_windows.ps1` (#2654)
parent
2a7553ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
llm/generate/gen_windows.ps1
llm/generate/gen_windows.ps1
+4
-1
No files found.
llm/generate/gen_windows.ps1
View file @
efe040f8
...
...
@@ -154,8 +154,9 @@ apply_patches
# -DLLAMA_AVX2 -- 2013 Intel Haswell & 2015 AMD Excavator / 2017 AMD Zen
# -DLLAMA_FMA (FMA3) -- 2013 Intel Haswell & 2012 AMD Piledriver
$
script
:
commonCpuDefs
=
@(
"-DCMAKE_POSITION_INDEPENDENT_CODE=on"
,
"-DLLAMA_NATIVE=off"
)
$
script
:
commonCpuDefs
=
@(
"-DCMAKE_POSITION_INDEPENDENT_CODE=on"
)
init_vars
$
script
:
cmakeDefs
=
$
script
:
commonCpuDefs
+
@(
"-DLLAMA_AVX=off"
,
"-DLLAMA_AVX2=off"
,
"-DLLAMA_AVX512=off"
,
"-DLLAMA_FMA=off"
,
"-DLLAMA_F16C=off"
)
+
$
script
:
cmakeDefs
$
script
:
buildDir
=
"
${script:llamacppDir}
/build/windows/
${script:ARCH}
/cpu"
write-host
"Building LCD CPU"
...
...
@@ -164,6 +165,7 @@ install
sign
compress_libs
init_vars
$
script
:
cmakeDefs
=
$
script
:
commonCpuDefs
+
@(
"-DLLAMA_AVX=on"
,
"-DLLAMA_AVX2=off"
,
"-DLLAMA_AVX512=off"
,
"-DLLAMA_FMA=off"
,
"-DLLAMA_F16C=off"
)
+
$
script
:
cmakeDefs
$
script
:
buildDir
=
"
${script:llamacppDir}
/build/windows/
${script:ARCH}
/cpu_avx"
write-host
"Building AVX CPU"
...
...
@@ -172,6 +174,7 @@ install
sign
compress_libs
init_vars
$
script
:
cmakeDefs
=
$
script
:
commonCpuDefs
+
@(
"-DLLAMA_AVX=on"
,
"-DLLAMA_AVX2=on"
,
"-DLLAMA_AVX512=off"
,
"-DLLAMA_FMA=on"
,
"-DLLAMA_F16C=on"
)
+
$
script
:
cmakeDefs
$
script
:
buildDir
=
"
${script:llamacppDir}
/build/windows/
${script:ARCH}
/cpu_avx2"
write-host
"Building AVX2 CPU"
...
...
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