修复未编译执行cudnn相关代码的问题 #66
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: Build Latte | |
on: [push, pull_request] | |
jobs: | |
ubuntu-22-cpu: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Clone | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Dependencies | |
id: depends | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libopenblas-dev build-essential cmake | |
- name: Build | |
id: cmake-build | |
run: | | |
cmake -S . -B build -DUSE_CUDA=OFF | |
cmake --build build -j $(nproc) | |
ubuntu-22-cuda: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Clone | |
id: checkout | |
uses: actions/checkout@v4 | |
- name: Dependencies | |
id: depends | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libopenblas-dev build-essential cmake | |
- name: CUDA | |
uses: Jimver/[email protected] | |
id: cuda-toolkit | |
with: | |
cuda: '12.5.0' | |
method: 'network' | |
- name: Build | |
id: cmake-build | |
run: | | |
cmake -S . -B build -DUSE_CUDA=ON | |
cmake --build build -j $(nproc) |