Browse Source

Added cublas target for Linux

tags/v0.5.1
Martin Evans 2 years ago
parent
commit
86398d400d
1 changed files with 12 additions and 2 deletions
  1. +12
    -2
      .github/workflows/compile.yml

+ 12
- 2
.github/workflows/compile.yml View File

@@ -83,10 +83,12 @@ jobs:
compile-windows-cublas:
if: ${{ github.event.inputs.cublas }}
name: Compile (cublas)
runs-on: windows-latest
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
cuda: ['12.1.0', '11.7.1']
runs-on: ${{ matrix.os }}
steps:
- name: Clone
id: checkout
@@ -106,12 +108,20 @@ jobs:
cd build
cmake .. -DLLAMA_CUBLAS=ON -DBUILD_SHARED_LIBS=ON
cmake --build . --config Release
ls -R

- name: Upload artifacts
- name: Upload artifacts (Windows)
if: ${{ matrix.os == 'windows-latest' }}
uses: actions/upload-artifact@v3
with:
path: .\build\bin\Release\llama.dll
name: llama-bin-win-cublas-cu${{ matrix.cuda }}-x64.dll
- name: Upload artifacts (Linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v3
with:
path: .\build\bin\Release\llama.so
name: llama-bin-linux-cublas-cu${{ matrix.cuda }}-x64.so
compile-macos:
if: ${{ github.event.inputs.macos }}


Loading…
Cancel
Save