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.
@@ -84,11 +97,13 @@ jobs:
84
97
-DUR_BUILD_TESTS=ON
85
98
-DUR_CONFORMANCE_TEST_LOADER=OFF
86
99
-DUR_BUILD_ADAPTER_${{matrix.adapter.name}}=ON
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++
90
104
-DUR_SYCL_LIBRARY_DIR=${{github.workspace}}/dpcpp_compiler/lib
91
105
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
106
+ -DUR_CONFORMANCE_TEST_LOADER=${{ matrix.adapter.other_name != '' && 'ON' || 'OFF' }}
92
107
${{ matrix.adapter.name == 'HIP' && '-DUR_CONFORMANCE_AMD_ARCH=gfx1030' || '' }}
93
108
${{ matrix.adapter.name == 'HIP' && '-DUR_HIP_PLATFORM=AMD' || '' }}
94
109
@@ -103,10 +118,12 @@ jobs:
103
118
- name : Test adapter specific
104
119
working-directory : ${{github.workspace}}/build
105
120
run : ctest -C ${{matrix.build_type}} --output-on-failure -L "adapter-specific" --timeout 180
121
+ # Don't run adapter specific tests when building multiple adapters
122
+ if : ${{ matrix.adapter.other_name == '' }}
106
123
107
124
- name : Test adapters
108
125
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
126
+ 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
127
111
128
- name : Get information about platform
112
129
if : ${{ always() }}
0 commit comments