@@ -110,7 +110,7 @@ jobs:
110110 export LD_LIBRARY_PATH=/usr/local/cuda-12.6/lib64 ${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
111111 mkdir build
112112 cd build
113- cmake .. -DLLAMA_FATAL_WARNINGS=OFF -DBUILD_SHARED_LIBS=ON -DGGML_CUDA=ON
113+ cmake .. -DLLAMA_FATAL_WARNINGS=OFF -DBUILD_SHARED_LIBS=ON -DGGML_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES="86"
114114 cmake --build . --config Release -j $(nproc)
115115
116116 - name : Determine tag name
@@ -140,83 +140,6 @@ jobs:
140140 with :
141141 path : cudart-llama-${{ steps.tag.outputs.name }}-bin-ubuntu-x64.zip
142142 name : cudart-llama-bin-ubuntu-x64.zip
143-
144- # Vulkan Release
145-
146- ubuntu-latest-vulkan-cmake :
147- runs-on : ubuntu-latest
148-
149- steps :
150- - name : Free Disk Space (Ubuntu)
151- uses : jlumbroso/free-disk-space@main
152- with :
153- # this might remove tools that are actually needed,
154- # if set to "true" but frees about 6 GB
155- tool-cache : true
156-
157- # all of these default to true, but feel free to set to
158- # "false" if necessary for your workflow
159- android : true
160- dotnet : true
161- haskell : true
162- large-packages : true
163- docker-images : true
164- swap-storage : true
165-
166- - name : Clone
167- id : checkout
168- uses : actions/checkout@v4
169- with :
170- fetch-depth : 0
171-
172- - name : Dependencies
173- id : depends
174- run : |
175- wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
176- sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list
177- sudo apt-get update
178- sudo apt-get install build-essential libcurl4-openssl-dev vulkan-sdk ccache
179- sudo apt install software-properties-common
180- sudo add-apt-repository ppa:ubuntu-toolchain-r/test
181- sudo apt update
182- sudo apt install gcc-13 g++-13
183- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 13 --slave /usr/bin/g++ g++ /usr/bin/g++-13
184-
185- - name : Build
186- id : cmake_build
187- run : |
188- mkdir build
189- cd build
190- cmake .. -DLLAMA_FATAL_WARNINGS=OFF -DBUILD_SHARED_LIBS=ON -DGGML_VULKAN=ON
191- cmake --build . --config Release -j $(nproc)
192-
193- - name : Determine tag name
194- id : tag
195- shell : bash
196- run : |
197- BUILD_NUMBER="$(git rev-list --count HEAD)"
198- SHORT_HASH="$(git rev-parse --short=7 HEAD)"
199- if [[ "${{ env.BRANCH_NAME }}" == "master" ]]; then
200- echo "name=b${BUILD_NUMBER}" >> $GITHUB_OUTPUT
201- else
202- SAFE_NAME=$(echo "${{ env.BRANCH_NAME }}" | tr '/' '-')
203- echo "name=${SAFE_NAME}-b${BUILD_NUMBER}-${SHORT_HASH}" >> $GITHUB_OUTPUT
204- fi
205-
206- - name : Pack artifacts
207- id : pack_artifacts
208- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
209- run : |
210- cp LICENSE ./build/bin/
211- cp $(find . -name "*.so") ./build/bin/
212- zip -r vulkan-llama-${{ steps.tag.outputs.name }}-bin-ubuntu-x64.zip ./build/bin/*
213-
214- - name : Upload artifacts
215- if : ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
216- uses : actions/upload-artifact@v4
217- with :
218- path : vulkan-llama-${{ steps.tag.outputs.name }}-bin-ubuntu-x64.zip
219- name : vulkan-llama-bin-ubuntu-x64.zip
220143
221144 # TODO: build with GGML_NO_METAL because test-backend-ops fail on "Apple Paravirtual device" and I don't know
222145 # how to debug it.
0 commit comments