-
Notifications
You must be signed in to change notification settings - Fork 13.2k
ci: update vulkan ci #16294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
ci: update vulkan ci #16294
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -387,8 +387,8 @@ jobs: | |
cd build | ||
ctest -L main --verbose | ||
|
||
ubuntu-22-cmake-vulkan: | ||
runs-on: ubuntu-22.04 | ||
ubuntu-24-cmake-vulkan: | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: Clone | ||
|
@@ -398,20 +398,40 @@ jobs: | |
- name: ccache | ||
uses: ggml-org/[email protected] | ||
with: | ||
key: ubuntu-22-cmake-vulkan | ||
key: ubuntu-24-cmake-vulkan | ||
evict-old-files: 1d | ||
|
||
- name: Dependencies | ||
id: depends | ||
run: | | ||
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add - | ||
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list | ||
sudo add-apt-repository -y ppa:kisak/kisak-mesa | ||
sudo apt-get update -y | ||
sudo apt-get install -y build-essential mesa-vulkan-drivers vulkan-sdk libcurl4-openssl-dev | ||
sudo apt-get install -y build-essential mesa-vulkan-drivers libxcb-xinput0 libxcb-xinerama0 libxcb-cursor-dev libcurl4-openssl-dev | ||
|
||
- name: Get latest Vulkan SDK version | ||
id: vulkan_sdk_version | ||
run: | | ||
echo "VULKAN_SDK_VERSION=$(curl https://vulkan.lunarg.com/sdk/latest/linux.txt)" >> "$GITHUB_ENV" | ||
|
||
- name: Cache Vulkan SDK | ||
id: cache_vulkan_sdk | ||
uses: actions/cache@v4 | ||
with: | ||
path: ./vulkan_sdk | ||
key: vulkan-sdk-${{ env.VULKAN_SDK_VERSION }}-${{ runner.os }} | ||
|
||
- name: Install Vulkan SDK | ||
if: steps.cache_vulkan_sdk.outputs.cache-hit != 'true' | ||
id: vulkan_sdk_install | ||
run: | | ||
mkdir -p vulkan_sdk | ||
cd vulkan_sdk | ||
curl --no-progress-meter https://sdk.lunarg.com/sdk/download/latest/linux/vulkan_sdk.tar.xz | tar -Jx --strip-components=1 | ||
|
||
- name: Build | ||
id: cmake_build | ||
run: | | ||
source ./vulkan_sdk/setup-env.sh | ||
cmake -B build \ | ||
-DGGML_VULKAN=ON | ||
cmake --build build --config Release -j $(nproc) | ||
|
@@ -421,6 +441,7 @@ jobs: | |
run: | | ||
cd build | ||
export GGML_VK_VISIBLE_DEVICES=0 | ||
export GGML_VK_DISABLE_F16=1 | ||
# This is using llvmpipe and runs slower than other backends | ||
ctest -L main --verbose --timeout 4200 | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.