7
7
adapter_name :
8
8
required : true
9
9
type : string
10
+ other_adapter_name :
11
+ required : false
12
+ type : string
13
+ default : " "
10
14
runner_name :
11
15
required : true
12
16
type : string
13
17
platform :
14
18
required : false
15
19
type : string
16
20
default : " "
21
+ other_platform :
22
+ required : false
23
+ type : string
24
+ default : " "
17
25
static_loader :
18
26
required : false
19
27
type : string
39
47
if : github.repository == 'oneapi-src/unified-runtime' # run only on upstream; forks won't have the HW
40
48
strategy :
41
49
matrix :
42
- adapter : [
43
- {name: "${{inputs.adapter_name}}", platform: "${{inputs.platform}}", static_Loader: "${{inputs.static_loader}}", static_adapter: "${{inputs.static_loader}}"},
44
- ]
50
+ adapter : [{
51
+ name : " ${{inputs.adapter_name}}" ,
52
+ other_name : " ${{inputs.other_adapter_name}}" ,
53
+ platform : " ${{inputs.platform}}" ,
54
+ other_platform : " ${{inputs.other_platform}}" ,
55
+ static_Loader : " ${{inputs.static_loader}}" ,
56
+ static_adapter : " ${{inputs.static_loader}}"
57
+ }]
45
58
build_type : [Debug, Release]
46
59
compiler : [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}]
47
60
# TODO: The latest L0 loader segfaults when built with clang.
82
95
-DUR_ENABLE_TRACING=ON
83
96
-DUR_DEVELOPER_MODE=ON
84
97
-DUR_BUILD_TESTS=ON
85
- -DUR_CONFORMANCE_TEST_LOADER=OFF
86
98
-DUR_BUILD_ADAPTER_${{matrix.adapter.name}}=ON
99
+ -DUR_CONFORMANCE_TEST_LOADER=${{ matrix.adapter.other_name != '' && 'ON' || 'OFF' }}
100
+ ${{ matrix.adapter.other_name != '' && format('-DUR_BUILD_ADAPTER_{0}=ON', matrix.adapter.other_name) || '' }}
87
101
-DUR_STATIC_LOADER=${{matrix.adapter.static_Loader}}
88
102
-DUR_STATIC_ADAPTER_${{matrix.adapter.name}}=${{matrix.adapter.static_adapter}}
89
103
-DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
@@ -103,10 +117,12 @@ jobs:
103
117
- name : Test adapter specific
104
118
working-directory : ${{github.workspace}}/build
105
119
run : ctest -C ${{matrix.build_type}} --output-on-failure -L "adapter-specific" --timeout 180
120
+ # Don't run adapter specific tests when building multiple adapters
121
+ if : ${{ matrix.adapter.other_name == '' }}
106
122
107
123
- name : Test adapters
108
124
working-directory : ${{github.workspace}}/build
109
- run : env UR_CTS_ADAPTER_PLATFORM="${{matrix.adapter.platform}}" ctest -C ${{matrix.build_type}} --output-on-failure -L "conformance" --timeout 180
125
+ run : env UR_CTS_ADAPTER_PLATFORM="${{matrix.adapter.name}}:${{matrix.adapter. platform}};${{matrix.adapter.other_name}}:${{matrix.adapter.other_platform }}" ctest -C ${{matrix.build_type}} --output-on-failure -L "conformance" --timeout 180
110
126
111
127
- name : Get information about platform
112
128
if : ${{ always() }}
0 commit comments