-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Asahi has a forked version of mesa while it upstream. Signed-off-by: Eric Curtin <[email protected]>
- Loading branch information
1 parent
0048ee3
commit f6fa180
Showing
5 changed files
with
48 additions
and
14 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM fedora:41 | ||
|
||
# renovate: datasource=github-releases depName=containers/omlmd extractVersion=^v(?<version>.*) | ||
ARG OMLMD_VERSION=0.1.6 | ||
ARG LLAMA_CPP_SHA=1329c0a75e6a7defc5c380eaf80d8e0f66d7da78 | ||
# renovate: datasource=git-refs depName=ggerganov/whisper.cpp packageName=https://github.com/ggerganov/whisper.cpp gitRef=master versioning=loose type=digest | ||
ARG WHISPER_CPP_SHA=0377596b77a3602e36430320cbe45f8c305ef04a | ||
|
||
RUN dnf install -y dnf-plugins-core && \ | ||
dnf copr enable -y @asahi/fedora-remix-branding && \ | ||
dnf install -y asahi-repos && \ | ||
dnf install -y mesa-vulkan-drivers vulkan-headers vulkan-loader-devel \ | ||
vulkan-tools spirv-tools glslc glslang git procps-ng vim cmake gcc-c++ \ | ||
python3-pip python3-argcomplete clang && \ | ||
dnf clean all && \ | ||
rm -rf /var/cache/*dnf* | ||
|
||
RUN /usr/bin/python3 --version | ||
RUN pip install "omlmd==${OMLMD_VERSION}" | ||
|
||
COPY ../scripts /scripts | ||
RUN export CC=clang && \ | ||
export CXX=clang++ && \ | ||
chmod +x /scripts/*.sh && \ | ||
/scripts/build_llama_and_whisper.sh "$LLAMA_CPP_SHA" "$WHISPER_CPP_SHA" \ | ||
"/usr" "-DGGML_VULKAN=1" | ||
|
||
ENV WHISPER_CPP_SHA=${WHISPER_CPP_SHA} | ||
ENV LLAMA_CPP_SHA=${LLAMA_CPP_SHA} |
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
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