-
Notifications
You must be signed in to change notification settings - Fork 9
152 lines (113 loc) · 4.69 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
name: GPU
on:
push:
branches: [ '**' ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build-opencl:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
# - uses: Swatinem/rust-cache@v2
- name: Build (OpenCL)
run: cargo build --verbose --no-default-features --features opencl
build-cuda:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
# - uses: Swatinem/rust-cache@v2
- name: Build (CUDA)
run: cargo build --verbose --no-default-features --features cuda
build-vulkan:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
# - uses: Swatinem/rust-cache@v2
- name: Build (Vulkan)
run: cargo build --verbose --no-default-features --features vulkan
build-all:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
# - uses: Swatinem/rust-cache@v2
- name: Build (cuda,opencl)
run: cargo build --verbose --no-default-features --features cuda,opencl
- name: Build (all)
run: cargo build --verbose --no-default-features --features cuda,opencl,vulkan
test-opencl:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
# - uses: Swatinem/rust-cache@v2
- name: Run tests (OpenCL)
run: cargo test --verbose --no-default-features --features opencl
- name: Run tests (OpenCL, lazy)
run: cargo test --verbose --no-default-features --features opencl,lazy
- name: Run tests (OpenCL, autograd)
run: cargo test --verbose --no-default-features --features opencl,autograd
- name: Run tests (OpenCL, graph)
run: cargo test --verbose --no-default-features --features opencl,graph
- name: Run tests (OpenCL, modules)
run: cargo test --verbose --no-default-features --features opencl,autograd,graph,cpu
- name: Run tests (OpenCL, fork)
run: CUSTOS_USE_UNIFIED=false cargo test --verbose --no-default-features --features opencl,fork
test-cuda:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
# - uses: Swatinem/rust-cache@v2
- name: Run tests (CUDA)
run: cargo test --verbose --no-default-features --features cuda
- name: Run tests (CUDA, lazy)
run: cargo test --verbose --no-default-features --features cuda,lazy
- name: Run tests (CUDA, autograd)
run: cargo test --verbose --no-default-features --features cuda,autograd
- name: Run tests (CUDA, graph)
run: cargo test --verbose --no-default-features --features cuda,graph
- name: Run tests (CUDA, cpu, serde)
run: cargo test --verbose --no-default-features --features cuda,cpu,serde
- name: Run tests (CUDA, modules)
run: cargo test --verbose --no-default-features --features cuda,autograd,graph,cpu
test-vulkan:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
# - uses: Swatinem/rust-cache@v2
- name: Run tests (vulkan)
run: cargo test --verbose --no-default-features --features vulkan
- name: Run tests (vulkan, lazy)
run: cargo test --verbose --no-default-features --features vulkan,lazy
- name: Run tests (vulkan, autograd)
run: cargo test --verbose --no-default-features --features vulkan,autograd
- name: Run tests (vulkan, graph)
run: cargo test --verbose --no-default-features --features vulkan,graph
- name: Run tests (vulkan, cpu)
run: cargo test --verbose --no-default-features --features vulkan,cpu
- name: Run tests (vulkan, modules)
run: cargo test --verbose --no-default-features --features vulkan,autograd,graph,cpu
test-all:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
# - uses: Swatinem/rust-cache@v2
- name: Run tests (CUDA, OpenCL, vulkan)
run: cargo test --verbose --no-default-features --features cuda,opencl,vulkan
- name: Run tests (CUDA, OpenCL, lazy, vulkan)
run: cargo test --verbose --no-default-features --features cuda,opencl,lazy,vulkan
- name: Run tests (CUDA, OpenCL, autograd, vulkan)
run: cargo test --verbose --no-default-features --features cuda,opencl,autograd,vulkan
- name: Run tests (CUDA, OpenCL, graph, vulkan)
run: cargo test --verbose --no-default-features --features cuda,opencl,graph,vulkan
- name: Run cuda (untyped device) tests
run: cargo test --verbose --no-default-features --features untyped,cuda,half