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
55ca8272
Unverified
Commit
55ca8272
authored
Oct 02, 2025
by
Daniel Hiltgen
Committed by
GitHub
Oct 02, 2025
Browse files
AMD: block running on unsupported gfx900/gfx906 (#12481)
parent
c68f367e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
.github/workflows/release.yaml
.github/workflows/release.yaml
+1
-0
Dockerfile
Dockerfile
+1
-0
scripts/build_windows.ps1
scripts/build_windows.ps1
+1
-0
No files found.
.github/workflows/release.yaml
View file @
55ca8272
...
@@ -163,6 +163,7 @@ jobs:
...
@@ -163,6 +163,7 @@ jobs:
cmake --preset "${{ matrix.preset }}" ${{ matrix.flags }} -DOLLAMA_RUNNER_DIR="${{ matrix.runner_dir }}"
cmake --preset "${{ matrix.preset }}" ${{ matrix.flags }} -DOLLAMA_RUNNER_DIR="${{ matrix.runner_dir }}"
cmake --build --parallel --preset "${{ matrix.preset }}"
cmake --build --parallel --preset "${{ matrix.preset }}"
cmake --install build --component "${{ startsWith(matrix.preset, 'CUDA ') && 'CUDA' || startsWith(matrix.preset, 'ROCm ') && 'HIP' || 'CPU' }}" --strip --parallel 8
cmake --install build --component "${{ startsWith(matrix.preset, 'CUDA ') && 'CUDA' || startsWith(matrix.preset, 'ROCm ') && 'HIP' || 'CPU' }}" --strip --parallel 8
rm -f dist\lib\ollama\rocm\rocblas\library\*gfx906*
env
:
env
:
CMAKE_GENERATOR
:
Ninja
CMAKE_GENERATOR
:
Ninja
-
uses
:
actions/upload-artifact@v4
-
uses
:
actions/upload-artifact@v4
...
...
Dockerfile
View file @
55ca8272
...
@@ -80,6 +80,7 @@ RUN --mount=type=cache,target=/root/.ccache \
...
@@ -80,6 +80,7 @@ RUN --mount=type=cache,target=/root/.ccache \
cmake
--preset
'ROCm 6'
-DOLLAMA_RUNNER_DIR
=
"rocm"
\
cmake
--preset
'ROCm 6'
-DOLLAMA_RUNNER_DIR
=
"rocm"
\
&&
cmake
--build
--parallel
${
PARALLEL
}
--preset
'ROCm 6'
\
&&
cmake
--build
--parallel
${
PARALLEL
}
--preset
'ROCm 6'
\
&&
cmake
--install
build
--component
HIP
--strip
--parallel
${
PARALLEL
}
&&
cmake
--install
build
--component
HIP
--strip
--parallel
${
PARALLEL
}
RUN
rm
-f
dist/lib/ollama/rocm/rocblas/library/
*
gfx90[06]
*
FROM
--platform=linux/arm64 nvcr.io/nvidia/l4t-jetpack:${JETPACK5VERSION} AS jetpack-5
FROM
--platform=linux/arm64 nvcr.io/nvidia/l4t-jetpack:${JETPACK5VERSION} AS jetpack-5
ARG
CMAKEVERSION
ARG
CMAKEVERSION
...
...
scripts/build_windows.ps1
View file @
55ca8272
...
@@ -179,6 +179,7 @@ function buildROCm() {
...
@@ -179,6 +179,7 @@ function buildROCm() {
if
(
$LASTEXITCODE
-ne
0
)
{
exit
(
$LASTEXITCODE
)}
if
(
$LASTEXITCODE
-ne
0
)
{
exit
(
$LASTEXITCODE
)}
&
cmake
--install
build
--component
"HIP"
--strip
&
cmake
--install
build
--component
"HIP"
--strip
if
(
$LASTEXITCODE
-ne
0
)
{
exit
(
$LASTEXITCODE
)}
if
(
$LASTEXITCODE
-ne
0
)
{
exit
(
$LASTEXITCODE
)}
rm
-f
$
script
:
DIST_DIR
\lib\ollama\rocm\rocblas\library\
*
gfx906
*
}
}
}
}
}
}
...
...
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