forked from flagos-ai/FlagGems
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (79 loc) · 2.57 KB
/
Copy pathgems-test-on-hopper.yaml
File metadata and controls
87 lines (79 loc) · 2.57 KB
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
name: flag-gems-test-on-hopper
on:
push:
branches: [ "master" ]
paths:
- '**.py'
- '**.cpp'
- '**.cu'
- '**.h'
- '**.hpp'
- '**.cc'
- 'CMakeLists.txt'
- '**/*.cmake'
- '**/*.mk'
- 'Makefile'
pull_request:
branches: [ "master" ]
paths:
- '**.py'
- '**.cpp'
- '**.cu'
- '**.h'
- '**.hpp'
- '**.cc'
- 'CMakeLists.txt'
- '**/*.cmake'
- '**/*.mk'
- 'Makefile'
jobs:
op-test-on-hopper:
runs-on: hopper
concurrency:
group: op-test-on-hopper-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: FlagGems reduction ops on hopper
shell: bash
run: |
source tools/run_command.sh
run_command pytest -s tests/test_reduction_ops.py && \
run_command pytest -s tests/test_general_reduction_ops.py && \
run_command pytest -s tests/test_norm_ops.py
- name: FlagGems pointwise ops on hopper
shell: bash
run: |
source tools/run_command.sh
run_command pytest -s tests/test_pointwise_dynamic.py && \
run_command pytest -s tests/test_unary_pointwise_ops.py && \
run_command pytest -s tests/test_binary_pointwise_ops.py && \
run_command pytest -s tests/test_pointwise_type_promotion.py && \
run_command pytest -s tests/test_tensor_constructor_ops.py
- name: FlagGems blas ops on hopper
shell: bash
run: |
source tools/run_command.sh
# FIXME(zhiyuan): Fix sharedencoding on Hopper
# run_command pytest -s tests/test_attention_ops.py && \
run_command pytest -s tests/test_blas_ops.py
- name: FlagGems special ops on hopper
shell: bash
run: |
source tools/run_command.sh
run_command pytest -s tests/test_special_ops.py && \
run_command pytest -s tests/test_distribution_ops.py
- name: FlagGems utils on hopper
shell: bash
run: |
source tools/run_command.sh
run_command pytest -s tests/test_libentry.py && \
run_command pytest -s tests/test_shape_utils.py && \
run_command pytest -s tests/test_tensor_wrapper.py
- name: FlagGems examples on hopper
shell: bash
run: |
source tools/run_command.sh
# FIXME(zhiyuan): OSError: [Errno 101] Network is unreachable
# run_command pytest -s examples/model_bert_test.py