Skip to content

Commit

Permalink
update cuda12.1 build check ci
Browse files Browse the repository at this point in the history
  • Loading branch information
irexyc committed Nov 30, 2023
1 parent d3e2cee commit b4e3240
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/linux-x64-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,37 @@ jobs:
uses: addnab/docker-run-action@v3
with:
image: openmmlab/lmdeploy-builder:cuda11.8
options: -v ${{ github.workspace }}:/work --cpus=1.8
options: -v ${{ github.workspace }}:/work
run: |
cd /work
source /opt/conda/bin/activate
conda activate py38
mkdir build && cd build
bash ../generate.sh make
make -j$(nproc) && make install
cuda-121:
runs-on: ubuntu-latest
steps:
- name: Free disk space
uses: jlumbroso/free-disk-space@main
with:
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB
tool-cache: false
docker-images: false
# All of these default to true, but feel free to set to "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: false
- name: Checkout repository
uses: actions/checkout@v3
- name: Build
uses: addnab/docker-run-action@v3
with:
image: openmmlab/lmdeploy-builder:cuda12.1
options: -v ${{ github.workspace }}:/work
run: |
cd /work
source /opt/conda/bin/activate
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/windows-x64-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,37 @@ jobs:
cd ..
rm build -Force -Recurse
python setup.py bdist_wheel -d build/wheel
cuda-121:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Install python packages
run: |
pip install pybind11 wheel
- uses: Jimver/cuda-toolkit@v0.2.11
id: cuda-toolkit
with:
cuda: '12.1.0'
use-github-cache: false
- name: Build wheel
run: |
((Get-Content -path CMakeLists.txt -Raw) -replace '-Wall','/W0') | Set-Content CMakeLists.txt
$env:BUILD_TEST="ON"
mkdir build
cd build
..\builder\windows\generate.ps1
cmake --build . --config Release -- /m /v:q
if (-Not $?) {
echo "build failed"
exit 1
}
cmake --install . --config Release
cd ..
rm build -Force -Recurse
python setup.py bdist_wheel -d build/wheel

0 comments on commit b4e3240

Please sign in to comment.