-
Notifications
You must be signed in to change notification settings - Fork 633
46 lines (42 loc) · 1.19 KB
/
rocm_build.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
name: rocm-build
on:
push:
branches:
- develop
pull_request:
paths:
- "packaging/compute_wheel_version.sh"
- ".github/workflows/rocm_build.yml"
- ".github/workflows/wheels_build.yml"
- "setup.py"
- "requirements*.txt"
- "xformers/csrc/attention/hip_fmha/**"
- "third_party/composable_kernel_tiled/**"
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-alola']
python: ['3.11']
torch_version: ['2.4.0']
toolkit_type: ['rocm']
toolkit_short_version: ['6.0', '6.1']
uses: ./.github/workflows/wheels_build.yml
if: github.repository == 'rocm/xformers'
with:
os: ${{ matrix.os }}
python: ${{ matrix.python }}
torch_version: ${{ matrix.torch_version }}
toolkit_type: ${{ matrix.toolkit_type }}
toolkit_short_version: ${{ matrix.toolkit_short_version }}
artifact_tag: ${{ github.run_id }}
clean:
runs-on: self-hosted
if: ${{ !cancelled() }}
needs: [build]
steps:
- name: Remove dangling Docker images
run: |
docker images -q -f dangling=true | xargs --no-run-if-empty docker rmi