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 :
18
+ description : " Platform string, `UR_CTS_ADAPTER_PLATFORM` will be set to this."
14
19
required : false
15
20
type : string
16
21
default : " "
39
44
if : github.repository == 'oneapi-src/unified-runtime' # run only on upstream; forks won't have the HW
40
45
strategy :
41
46
matrix :
42
- adapter : [
43
- {name: "${{inputs.adapter_name}}", platform: "${{inputs.platform}}", static_Loader: "${{inputs.static_loader}}", static_adapter: "${{inputs.static_loader}}"},
44
- ]
47
+ adapter : [{
48
+ name : " ${{inputs.adapter_name}}" ,
49
+ other_name : " ${{inputs.other_adapter_name}}" ,
50
+ platform : " ${{inputs.platform}}" ,
51
+ static_Loader : " ${{inputs.static_loader}}" ,
52
+ static_adapter : " ${{inputs.static_loader}}"
53
+ }]
45
54
build_type : [Debug, Release]
46
55
compiler : [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}]
47
56
# TODO: The latest L0 loader segfaults when built with clang.
82
91
-DUR_ENABLE_TRACING=ON
83
92
-DUR_DEVELOPER_MODE=ON
84
93
-DUR_BUILD_TESTS=ON
85
- -DUR_CONFORMANCE_TEST_LOADER=OFF
86
94
-DUR_BUILD_ADAPTER_${{matrix.adapter.name}}=ON
95
+ -DUR_CONFORMANCE_TEST_LOADER=${{ matrix.adapter.other_name != '' && 'ON' || 'OFF' }}
96
+ ${{ matrix.adapter.other_name != '' && format('-DUR_BUILD_ADAPTER_{0}=ON', matrix.adapter.other_name) || '' }}
87
97
-DUR_STATIC_LOADER=${{matrix.adapter.static_Loader}}
88
98
-DUR_STATIC_ADAPTER_${{matrix.adapter.name}}=${{matrix.adapter.static_adapter}}
89
99
-DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
@@ -103,6 +113,8 @@ jobs:
103
113
- name : Test adapter specific
104
114
working-directory : ${{github.workspace}}/build
105
115
run : ctest -C ${{matrix.build_type}} --output-on-failure -L "adapter-specific" --timeout 180
116
+ # Don't run adapter specific tests when building multiple adapters
117
+ if : ${{ matrix.adapter.other_name == '' }}
106
118
107
119
- name : Test adapters
108
120
working-directory : ${{github.workspace}}/build
0 commit comments