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
8a65717f
Commit
8a65717f
authored
Apr 26, 2024
by
Hernan Martinez
Browse files
Do not build AVX runners on ARM64
parent
6d3152a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
llm/generate/gen_windows.ps1
llm/generate/gen_windows.ps1
+10
-10
No files found.
llm/generate/gen_windows.ps1
View file @
8a65717f
...
...
@@ -213,14 +213,10 @@ function build_static() {
}
}
function build_cpu() {
function build_cpu(
$gen_arch
) {
if ((-not "
${env:OLLAMA_SKIP_CPU_GENERATE}
" ) -and ((-not "
${env:OLLAMA_CPU_TARGET}
") -or ("
${env:OLLAMA_CPU_TARGET}
" -eq "
cpu
"))) {
# remaining llama.cpp builds use MSVC
init_vars
$gen_arch
= "
x64
"
if (
$
scrip
:
ARCH
-eq "
arm64
") {
$gen_arch
= "
ARM64
"
}
$
script
:
cmakeDefs
=
$
script
:
commonCpuDefs
+ @("
-A
",
$gen_arch
, "
-DLLAMA_AVX
=
off
", "
-DLLAMA_AVX2
=
off
", "
-DLLAMA_AVX512
=
off
", "
-DLLAMA_FMA
=
off
", "
-DLLAMA_F16C
=
off
") +
$
script
:
cmakeDefs
$
script
:
buildDir
="
..
/build/windows/
${script:ARCH}
/cpu
"
$
script
:
distDir
="
$
script
:
DIST_BASE
\cpu
"
...
...
@@ -353,11 +349,15 @@ if ($($args.count) -eq 0) {
git_module_setup
apply_patches
build_static
build_cpu
build_cpu_avx
build_cpu_avx2
build_cuda
build_rocm
if (
$
script
:
ARCH
-eq "
arm
64
") {
build_cpu("
ARM
64
")
} else { # amd64
build_cpu("
x
64
")
build_cpu_avx
build_cpu_avx2
build_cuda
build_rocm
}
cleanup
write-host "
`ngo
generate
completed.
LLM
runners:
$(get-childitem
-path
$
script
:
DIST_BASE
)
"
...
...
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