Skip to content

Commit 5a0ed51

Browse files
authored
Update Dawn version in WebGPU CI (ggml-org#20784)
* Pin Dawn version * Update docs with new Dawn commit hash
1 parent 8710e5f commit 5a0ed51

2 files changed

Lines changed: 16 additions & 18 deletions

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,15 @@ jobs:
150150
- name: Dawn Dependency
151151
id: dawn-depends
152152
run: |
153-
DAWN_VERSION="v2.0.0"
154-
DAWN_OWNER="reeselevine"
153+
DAWN_VERSION="v20260317.182325"
154+
DAWN_OWNER="google"
155155
DAWN_REPO="dawn"
156-
DAWN_ASSET_NAME="Dawn-5e9a4865b1635796ccc77dd30057f2b4002a1355-macos-latest-Release"
157-
echo "Fetching release asset from https://github.com/${DAWN_OWNER}/${DAWN_REPO}/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.zip"
158-
curl -L -o artifact.zip \
159-
"https://github.com/${DAWN_OWNER}/${DAWN_REPO}/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.zip"
156+
DAWN_ASSET_NAME="Dawn-18eb229ef5f707c1464cc581252e7603c73a3ef0-macos-latest-Release"
157+
echo "Fetching release asset from https://github.com/google/dawn/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.tar.gz"
158+
curl -L -o artifact.tar.gz \
159+
"https://github.com/google/dawn/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.tar.gz"
160160
mkdir dawn
161-
unzip artifact.zip
162-
tar -xvf ${DAWN_ASSET_NAME}.tar.gz -C dawn --strip-components=1
161+
tar -xvf artifact.tar.gz -C dawn --strip-components=1
163162
164163
- name: Build
165164
id: cmake_build
@@ -384,16 +383,15 @@ jobs:
384383
id: dawn-depends
385384
run: |
386385
sudo apt-get install -y libxrandr-dev libxinerama-dev libxcursor-dev mesa-common-dev libx11-xcb-dev libxi-dev
387-
DAWN_VERSION="v2.0.0"
388-
DAWN_OWNER="reeselevine"
386+
DAWN_VERSION="v20260317.182325"
387+
DAWN_OWNER="google"
389388
DAWN_REPO="dawn"
390-
DAWN_ASSET_NAME="Dawn-5e9a4865b1635796ccc77dd30057f2b4002a1355-ubuntu-latest-Release"
391-
echo "Fetching release asset from https://github.com/${DAWN_OWNER}/${DAWN_REPO}/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.zip"
392-
curl -L -o artifact.zip \
393-
"https://github.com/${DAWN_OWNER}/${DAWN_REPO}/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.zip"
389+
DAWN_ASSET_NAME="Dawn-18eb229ef5f707c1464cc581252e7603c73a3ef0-ubuntu-latest-Release"
390+
echo "Fetching release asset from https://github.com/google/dawn/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.tar.gz"
391+
curl -L -o artifact.tar.gz \
392+
"https://github.com/google/dawn/releases/download/${DAWN_VERSION}/${DAWN_ASSET_NAME}.tar.gz"
394393
mkdir dawn
395-
unzip artifact.zip
396-
tar -xvf ${DAWN_ASSET_NAME}.tar.gz -C dawn --strip-components=1
394+
tar -xvf artifact.tar.gz -C dawn --strip-components=1
397395
398396
- name: Build
399397
id: cmake_build
@@ -427,7 +425,7 @@ jobs:
427425
428426
- name: Fetch emdawnwebgpu
429427
run: |
430-
DAWN_TAG="v20251027.212519"
428+
DAWN_TAG="v20260317.182325"
431429
EMDAWN_PKG="emdawnwebgpu_pkg-${DAWN_TAG}.zip"
432430
echo "Downloading ${EMDAWN_PKG}"
433431
curl -L -o emdawn.zip \

docs/build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ To read documentation for how to build on Android, [click here](./android.md)
728728

729729
## WebGPU [In Progress]
730730

731-
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`.
731+
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`.
732732

733733
In the llama.cpp directory, build with CMake:
734734

0 commit comments

Comments
 (0)