@@ -362,11 +362,11 @@ jobs:
362362 id : checkout
363363 uses : actions/checkout@v4
364364
365- - name : ccache
366- 367- with :
368- key : ubuntu-latest-cmake-rpc
369- evict-old-files : 1d
365+ # - name: ccache
366+ # uses: ggml-org/[email protected] 367+ # with:
368+ # key: ubuntu-latest-cmake-rpc
369+ # evict-old-files: 1d
370370
371371 - name : Dependencies
372372 id : depends
@@ -387,8 +387,8 @@ jobs:
387387 cd build
388388 ctest -L main --verbose
389389
390- ubuntu-22 -cmake-vulkan :
391- runs-on : ubuntu-22 .04
390+ ubuntu-24 -cmake-vulkan :
391+ runs-on : ubuntu-24 .04
392392
393393 steps :
394394 - name : Clone
@@ -398,20 +398,40 @@ jobs:
398398 - name : ccache
399399400400 with :
401- key : ubuntu-22 -cmake-vulkan
401+ key : ubuntu-24 -cmake-vulkan
402402 evict-old-files : 1d
403403
404404 - name : Dependencies
405405 id : depends
406406 run : |
407- wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
408- sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
407+ sudo add-apt-repository -y ppa:kisak/kisak-mesa
409408 sudo apt-get update -y
410- sudo apt-get install -y build-essential mesa-vulkan-drivers vulkan-sdk libcurl4-openssl-dev
409+ sudo apt-get install -y build-essential mesa-vulkan-drivers libxcb-xinput0 libxcb-xinerama0 libxcb-cursor-dev libcurl4-openssl-dev
410+
411+ - name : Get latest Vulkan SDK version
412+ id : vulkan_sdk_version
413+ run : |
414+ echo "VULKAN_SDK_VERSION=$(curl https://vulkan.lunarg.com/sdk/latest/linux.txt)" >> "$GITHUB_ENV"
415+
416+ - name : Cache Vulkan SDK
417+ id : cache_vulkan_sdk
418+ uses : actions/cache@v4
419+ with :
420+ path : ./vulkan_sdk
421+ key : vulkan-sdk-${{ env.VULKAN_SDK_VERSION }}-${{ runner.os }}
422+
423+ - name : Install Vulkan SDK
424+ if : steps.cache_vulkan_sdk.outputs.cache-hit != 'true'
425+ id : vulkan_sdk_install
426+ run : |
427+ mkdir -p vulkan_sdk
428+ cd vulkan_sdk
429+ curl --no-progress-meter https://sdk.lunarg.com/sdk/download/latest/linux/vulkan_sdk.tar.xz | tar -Jx --strip-components=1
411430
412431 - name : Build
413432 id : cmake_build
414433 run : |
434+ source ./vulkan_sdk/setup-env.sh
415435 cmake -B build \
416436 -DGGML_VULKAN=ON
417437 cmake --build build --config Release -j $(nproc)
@@ -421,6 +441,7 @@ jobs:
421441 run : |
422442 cd build
423443 export GGML_VK_VISIBLE_DEVICES=0
444+ export GGML_VK_DISABLE_F16=1
424445 # This is using llvmpipe and runs slower than other backends
425446 ctest -L main --verbose --timeout 4200
426447
@@ -487,7 +508,7 @@ jobs:
487508 id : depends
488509 run : |
489510 sudo apt-get update
490- sudo apt-get install -y build-essential git cmake rocblas-dev hipblas-dev libcurl4-openssl-dev
511+ sudo apt-get install -y build-essential git cmake rocblas-dev hipblas-dev libcurl4-openssl-dev rocwmma-dev
491512
492513 - name : ccache
493514@@ -1059,7 +1080,7 @@ jobs:
10591080 shell : bash
10601081
10611082 env :
1062- WINDOWS_BASEKIT_URL : https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7cd9bba0-7aab-4e30-b3ae-2221006a4a05 /intel-oneapi-base-toolkit -2025.1 .1.34_offline .exe
1083+ WINDOWS_BASEKIT_URL : https://registrationcenter-download.intel.com/akdlm/IRC_NAS/24751ead-ddc5-4479-b9e6-f9fe2ff8b9f2 /intel-deep-learning-essentials -2025.2 .1.25_offline .exe
10631084 WINDOWS_DPCPP_MKL : intel.oneapi.win.cpp-dpcpp-common:intel.oneapi.win.mkl.devel:intel.oneapi.win.dnnl:intel.oneapi.win.tbb.devel
10641085 ONEAPI_ROOT : " C:/Program Files (x86)/Intel/oneAPI"
10651086 steps :
@@ -1097,10 +1118,12 @@ jobs:
10971118 id : checkout
10981119 uses : actions/checkout@v4
10991120
1100- - name : Clone rocWMMA repository
1101- id : clone_rocwmma
1121+ - name : Grab rocWMMA package
1122+ id : grab_rocwmma
11021123 run : |
1103- git clone https://github.com/rocm/rocwmma --branch rocm-${{ env.ROCM_VERSION }} --depth 1
1124+ curl -o rocwmma.deb "https://repo.radeon.com/rocm/apt/${{ env.ROCM_VERSION }}/pool/main/r/rocwmma-dev/rocwmma-dev_1.7.0.60402-120~24.04_amd64.deb"
1125+ 7z x rocwmma.deb
1126+ 7z x data.tar
11041127
11051128 - name : Cache ROCm Installation
11061129 id : cache-rocm
@@ -1161,8 +1184,9 @@ jobs:
11611184 cmake -G "Unix Makefiles" -B build -S . `
11621185 -DCMAKE_C_COMPILER="${env:HIP_PATH}\bin\clang.exe" `
11631186 -DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" `
1164- -DCMAKE_CXX_FLAGS="-I$($PWD.Path.Replace('\', '/'))/rocwmma/library /include/" `
1187+ -DCMAKE_CXX_FLAGS="-I$($PWD.Path.Replace('\', '/'))/opt/rocm-${{ env.ROCM_VERSION }} /include/" `
11651188 -DCMAKE_BUILD_TYPE=Release `
1189+ -DROCM_DIR="${env:HIP_PATH}" `
11661190 -DGGML_HIP=ON `
11671191 -DGGML_HIP_ROCWMMA_FATTN=ON `
11681192 -DGGML_RPC=ON `
0 commit comments