Update Dawn version in WebGPU CI (#20784)
* Pin Dawn version * Update docs with new Dawn commit hash
This commit is contained in:
parent
8710e5f9b9
commit
5a0ed5150a
2 changed files with 16 additions and 18 deletions
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
|
|
@ -150,16 +150,15 @@ jobs:
|
||||||
- name: Dawn Dependency
|
- name: Dawn Dependency
|
||||||
id: dawn-depends
|
id: dawn-depends
|
||||||
run: |
|
run: |
|
||||||
DAWN_VERSION="v2.0.0"
|
DAWN_VERSION="v20260317.182325"
|
||||||
DAWN_OWNER="reeselevine"
|
DAWN_OWNER="google"
|
||||||
DAWN_REPO="dawn"
|
DAWN_REPO="dawn"
|
||||||
DAWN_ASSET_NAME="Dawn-5e9a4865b1635796ccc77dd30057f2b4002a1355-macos-latest-Release"
|
DAWN_ASSET_NAME="Dawn-18eb229ef5f707c1464cc581252e7603c73a3ef0-macos-latest-Release"
|
||||||
echo "Fetching release asset from https://github.com/${DAWN_OWNER}/${DAWN_REPO}/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.zip"
|
echo "Fetching release asset from https://github.com/google/dawn/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.tar.gz"
|
||||||
curl -L -o artifact.zip \
|
curl -L -o artifact.tar.gz \
|
||||||
"https://github.com/${DAWN_OWNER}/${DAWN_REPO}/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.zip"
|
"https://github.com/google/dawn/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.tar.gz"
|
||||||
mkdir dawn
|
mkdir dawn
|
||||||
unzip artifact.zip
|
tar -xvf artifact.tar.gz -C dawn --strip-components=1
|
||||||
tar -xvf ${DAWN_ASSET_NAME}.tar.gz -C dawn --strip-components=1
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
id: cmake_build
|
id: cmake_build
|
||||||
|
|
@ -384,16 +383,15 @@ jobs:
|
||||||
id: dawn-depends
|
id: dawn-depends
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -y libxrandr-dev libxinerama-dev libxcursor-dev mesa-common-dev libx11-xcb-dev libxi-dev
|
sudo apt-get install -y libxrandr-dev libxinerama-dev libxcursor-dev mesa-common-dev libx11-xcb-dev libxi-dev
|
||||||
DAWN_VERSION="v2.0.0"
|
DAWN_VERSION="v20260317.182325"
|
||||||
DAWN_OWNER="reeselevine"
|
DAWN_OWNER="google"
|
||||||
DAWN_REPO="dawn"
|
DAWN_REPO="dawn"
|
||||||
DAWN_ASSET_NAME="Dawn-5e9a4865b1635796ccc77dd30057f2b4002a1355-ubuntu-latest-Release"
|
DAWN_ASSET_NAME="Dawn-18eb229ef5f707c1464cc581252e7603c73a3ef0-ubuntu-latest-Release"
|
||||||
echo "Fetching release asset from https://github.com/${DAWN_OWNER}/${DAWN_REPO}/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.zip"
|
echo "Fetching release asset from https://github.com/google/dawn/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.tar.gz"
|
||||||
curl -L -o artifact.zip \
|
curl -L -o artifact.tar.gz \
|
||||||
"https://github.com/${DAWN_OWNER}/${DAWN_REPO}/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.zip"
|
"https://github.com/google/dawn/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.tar.gz"
|
||||||
mkdir dawn
|
mkdir dawn
|
||||||
unzip artifact.zip
|
tar -xvf artifact.tar.gz -C dawn --strip-components=1
|
||||||
tar -xvf ${DAWN_ASSET_NAME}.tar.gz -C dawn --strip-components=1
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
id: cmake_build
|
id: cmake_build
|
||||||
|
|
@ -427,7 +425,7 @@ jobs:
|
||||||
|
|
||||||
- name: Fetch emdawnwebgpu
|
- name: Fetch emdawnwebgpu
|
||||||
run: |
|
run: |
|
||||||
DAWN_TAG="v20251027.212519"
|
DAWN_TAG="v20260317.182325"
|
||||||
EMDAWN_PKG="emdawnwebgpu_pkg-${DAWN_TAG}.zip"
|
EMDAWN_PKG="emdawnwebgpu_pkg-${DAWN_TAG}.zip"
|
||||||
echo "Downloading ${EMDAWN_PKG}"
|
echo "Downloading ${EMDAWN_PKG}"
|
||||||
curl -L -o emdawn.zip \
|
curl -L -o emdawn.zip \
|
||||||
|
|
|
||||||
|
|
@ -728,7 +728,7 @@ To read documentation for how to build on Android, [click here](./android.md)
|
||||||
|
|
||||||
## WebGPU [In Progress]
|
## WebGPU [In Progress]
|
||||||
|
|
||||||
The WebGPU backend relies on [Dawn](https://dawn.googlesource.com/dawn). Follow the instructions [here](https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/quickstart-cmake.md) to install Dawn locally so that llama.cpp can find it using CMake. The current implementation is up-to-date with Dawn commit `bed1a61`.
|
The WebGPU backend relies on [Dawn](https://dawn.googlesource.com/dawn). Follow the instructions [here](https://dawn.googlesource.com/dawn/+/refs/heads/main/docs/quickstart-cmake.md) to install Dawn locally so that llama.cpp can find it using CMake. The current implementation is up-to-date with Dawn commit `18eb229`.
|
||||||
|
|
||||||
In the llama.cpp directory, build with CMake:
|
In the llama.cpp directory, build with CMake:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue