Patch CUDA training logic to enable wasmedge-llmc gpu backend #30
Workflow file for this run
This file contains 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
name: Cmake | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-Clang-Linux: | |
strategy: | |
matrix: | |
target: | |
- 'Debug' | |
- 'Release' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install clang | |
run: | | |
sudo apt update && sudo apt install build-essential software-properties-common clang | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
- name: Build | |
run: | | |
echo "/usr/lib/ccache:/usr/local/opt/ccache/libexec" >> $GITHUB_PATH | |
mkdir build | |
cd build | |
cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=${{ matrix.target }} .. | |
cmake --build . -j$(nproc) | |
ctest . -j$(nproc) | |
build-GCC-Linux: | |
strategy: | |
matrix: | |
target: | |
- 'Debug' | |
- 'Release' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install GCC | |
run: | | |
sudo apt update && sudo apt install build-essential software-properties-common | |
- name: ccache | |
uses: hendrikmuhs/[email protected] | |
- name: Build | |
run: | | |
echo "/usr/lib/ccache:/usr/local/opt/ccache/libexec" >> $GITHUB_PATH | |
mkdir build | |
cd build | |
cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=${{ matrix.target }} .. | |
cmake --build . -j$(nproc) | |
build-CUDA: | |
strategy: | |
matrix: | |
target: | |
- 'Debug' | |
- 'Release' | |
runs-on: ubuntu-22.04 | |
container: | |
image: nvidia/cuda:12.6.1-cudnn8-devel-ubuntu22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: System Info | |
run: | | |
nvcc --version | |
g++ --version | |
- name: Build | |
run: | | |
ln -snf /usr/share/zoneinfo/Africa/Abidjan /etc/localtime && echo Africa/Abidjan > /etc/timezone | |
apt-get update && apt-get install -y git cmake | |
mkdir build | |
cd build | |
cmake -DCMAKE_BUILD_TYPE=${{ matrix.target }} .. -DCUDALIB=1 | |
cmake --build . -j$(nproc) |