77 adapter_name :
88 required : true
99 type : string
10+ other_adapter_name :
11+ required : false
12+ type : string
13+ default : " "
1014 runner_name :
1115 required : true
1216 type : string
1317 platform :
18+ description : " Platform string, `UR_CTS_ADAPTER_PLATFORM` will be set to this."
1419 required : false
1520 type : string
1621 default : " "
3944 if : github.repository == 'oneapi-src/unified-runtime' # run only on upstream; forks won't have the HW
4045 strategy :
4146 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+ }]
4554 build_type : [Debug, Release]
4655 compiler : [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}]
4756 # TODO: The latest L0 loader segfaults when built with clang.
8291 -DUR_ENABLE_TRACING=ON
8392 -DUR_DEVELOPER_MODE=ON
8493 -DUR_BUILD_TESTS=ON
85- -DUR_CONFORMANCE_TEST_LOADER=OFF
8694 -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) || '' }}
8797 -DUR_STATIC_LOADER=${{matrix.adapter.static_Loader}}
8898 -DUR_STATIC_ADAPTER_${{matrix.adapter.name}}=${{matrix.adapter.static_adapter}}
8999 -DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
@@ -103,6 +113,8 @@ jobs:
103113 - name : Test adapter specific
104114 working-directory : ${{github.workspace}}/build
105115 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 == '' }}
106118
107119 - name : Test adapters
108120 working-directory : ${{github.workspace}}/build
0 commit comments