-
Notifications
You must be signed in to change notification settings - Fork 32
53 lines (43 loc) · 1.13 KB
/
build-gpu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build GPU
on:
workflow_dispatch:
# Disabled on 2024-10-14 as this has been broken for over six months
# https://github.com/sgkit-dev/sgkit/issues/1270
# push:
# branches:
# - main
jobs:
build:
runs-on: "cirun-gpu-runner--${{ github.run_id }}"
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
- name: Run Nvidia-smi
run: |
nvidia-smi
- name: Set up Python
uses: conda-incubator/[email protected]
env:
CONDA: /home/runnerx/miniconda3
with:
python-version: ${{ matrix.python-version }}
miniconda-version: "latest"
- name: Conda info
run: |
conda info
conda list
- name: Installing cudatoolkit and dependencies
run: |
conda install -c nvidia cudatoolkit
pip install -r requirements.txt -r requirements-dev.txt
- name: Numba Information
run: |
numba -s
- name: Run GPU tagged tests
run: |
pytest -m gpu -v