-
Notifications
You must be signed in to change notification settings - Fork 57
129 lines (100 loc) · 2.93 KB
/
pti-tools_build_and_test.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
name: pti-tools-build-and-test
on:
push:
branches: [ "master" ]
paths-ignore:
- sdk/**
- .github/**
pull_request:
branches: [ "master" ]
paths-ignore:
- sdk/**
- .github/**
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
pti-tools-build-and-test:
name: Test pti tools Ubuntu-22-04
if: vars.PTI_RUN_TESTS == 1
runs-on: [self-hosted, Linux, pti]
strategy:
matrix:
include:
- container: ${{ vars.PTI_DOCKER_IMAGE_2024_1_1 }}
container:
image: ${{ matrix.container }}
options: --device=/dev/dri --cap-add CAP_PERFMON
steps:
- name: Clean-up
run: rm -rf *
- name: Checkout
uses: actions/checkout@v4
- name: Build-unitrace
run: |
source /opt/intel/oneapi/setvars.sh
python ./tests/run.py -s unitrace-build
- name: Test-unitrace
run: |
source /opt/intel/oneapi/setvars.sh
python ./tests/run.py -s unitrace-test
- name: Build-and-test-onetrace
run: |
source /opt/intel/oneapi/setvars.sh
python ./tests/run.py -s onetrace
- name: Build-and-test-oneprof
run: |
source /opt/intel/oneapi/setvars.sh
#
# Must with more than one GPU because of
# an random failures as documented in PTI-75
#
if [ $(sycl-ls|grep 'ext_oneapi_level_zero:gpu:' -c) -gt 1 ]; then
exit 0
fi
python ./tests/run.py -s oneprof
- name: Build-and-test-sysmon
run: |
source /opt/intel/oneapi/setvars.sh
python ./tests/run.py -s sysmon
- name: Build-and-test-cl_gpu_metrics
run: |
source /opt/intel/oneapi/setvars.sh
python ./tests/run.py -s cl_gpu_metrics
- name: Build-and-test-instcount
run: |
source /opt/intel/oneapi/setvars.sh
python ./tests/run.py -s instcount
- name: Build-and-test-ze_debug_info
run: |
source /opt/intel/oneapi/setvars.sh
python ./tests/run.py -s ze_debug_info
- name: Build-and-test-cl_debug_info
run: |
source /opt/intel/oneapi/setvars.sh
python ./tests/run.py -s cl_debug_info
pti-tools-build-and-test-windows:
name: Test unitrace on Windows
if: vars.PTI_RUN_TESTS == 1
runs-on: [self-hosted, Windows, pti]
defaults:
run:
shell: cmd
steps:
- name: Clean-up
run: |
del /S /Q /F *
- name: Checkout
uses: actions/checkout@v4
- name: Build-unitrace
run: |
@echo off
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
python ./tests/run.py -s unitrace-build
- name: Test-unitrace
run: |
@echo off
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
python ./tests/run.py -s unitrace-test