Skip to content

Commit

Permalink
Use 32 core ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
mthrok committed Sep 3, 2024
1 parent f0884fc commit 3220a74
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/conda_build_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
os-build:
type: string
default: "ubuntu-latest"
default: "32-core-ubuntu"
os-test:
type: string
default: "4-core-ubuntu-gpu-t4"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/package_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,20 @@ jobs:
name: "Wheel (Python 3.12, CUDA 12.1)"
uses: ./.github/workflows/wheel_build_cuda.yml
with:
python-version: "cp312-cp312"
python-version: "3.12"
cu-version: "12.1"

wheel-py311-cu121:
name: "Wheel (Python 3.11, CUDA 12.1)"
uses: ./.github/workflows/wheel_build_cuda.yml
with:
python-version: "cp311-cp311"
python-version: "3.11"
cu-version: "12.1"

wheel-py310-cu121:
name: "Wheel (Python 3.10, CUDA 21.1)"
uses: ./.github/workflows/wheel_build_cuda.yml
with:
python-version: "cp310-cp310"
python-version: "3.10"
cu-version: "12.1"
run-test: true
15 changes: 8 additions & 7 deletions .github/workflows/wheel_build_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
os-build:
type: string
default: "ubuntu-latest"
default: "32-core-ubuntu"
os-test:
type: string
default: "4-core-ubuntu-gpu-t4"
Expand Down Expand Up @@ -40,13 +40,14 @@ jobs:
SPDL_USE_TRACING: "1"
SPDL_BUILD_STUB: "0"
run: |
ver="${${{ inputs.python-version }}//./}"
python3 -m pip uninstall -y cmake
./packaging/build_wheel.sh ${{ inputs.python-version }}
./packaging/build_wheel.sh "cp${ver}-cp${ver}"
./packaging/audit_wheel.sh
- uses: actions/upload-artifact@v4
with:
name: "spdl.wheel.manylinux.${{ inputs.python-version }}.cu${{ inputs.cu-version }}"
name: "spdl.wheel.manylinux.py${{ inputs.python-version }}.cu${{ inputs.cu-version }}"
path: ./wheelhouse
if-no-files-found: error
retention-days: 1
Expand All @@ -68,13 +69,13 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: "spdl.wheel.manylinux.${{ inputs.python-version }}.cu${{ inputs.cu-version }}"
name: "spdl.wheel.manylinux.py${{ inputs.python-version }}.cu${{ inputs.cu-version }}"
path: ~/package

- name: Unit test
run: |
pip install --find-links "${HOME}/package/ spdl
apt update && apt install -yqq ffmpeg
pip install -c pytorch numpy pytest pytorch numba
pip install --find-links "${HOME}/package/" spdl
sudo apt update && sudo apt install -yqq ffmpeg
pip install numpy pytest torch --index-url https://download.pytorch.org/whl/cu${{ inputs.cu-version }}
pytest -v \
tests/spdl_unittest/cuda/

0 comments on commit 3220a74

Please sign in to comment.