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 :
1418 required : false
1519 type : string
1620 default : " "
21+ other_platform :
22+ required : false
23+ type : string
24+ default : " "
1725 static_loader :
1826 required : false
1927 type : string
3947 if : github.repository == 'oneapi-src/unified-runtime' # run only on upstream; forks won't have the HW
4048 strategy :
4149 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+ }]
4558 build_type : [Debug, Release]
4659 compiler : [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}]
4760 # TODO: The latest L0 loader segfaults when built with clang.
@@ -82,13 +95,14 @@ jobs:
8295 -DUR_ENABLE_TRACING=ON
8396 -DUR_DEVELOPER_MODE=ON
8497 -DUR_BUILD_TESTS=ON
85- -DUR_CONFORMANCE_TEST_LOADER=OFF
8698 -DUR_BUILD_ADAPTER_${{matrix.adapter.name}}=ON
99+ ${{ matrix.adapter.other_name != '' && format('-DUR_BUILD_ADAPTER_{0}=ON', matrix.adapter.other_name) || '' }}
87100 -DUR_STATIC_LOADER=${{matrix.adapter.static_Loader}}
88101 -DUR_STATIC_ADAPTER_${{matrix.adapter.name}}=${{matrix.adapter.static_adapter}}
89102 -DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
90103 -DUR_SYCL_LIBRARY_DIR=${{github.workspace}}/dpcpp_compiler/lib
91104 -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
105+ -DUR_CONFORMANCE_TEST_LOADER=${{ matrix.adapter.other_name != '' && 'ON' || 'OFF' }}
92106 ${{ matrix.adapter.name == 'HIP' && '-DUR_CONFORMANCE_AMD_ARCH=gfx1030' || '' }}
93107 ${{ matrix.adapter.name == 'HIP' && '-DUR_HIP_PLATFORM=AMD' || '' }}
94108
@@ -103,10 +117,12 @@ jobs:
103117 - name : Test adapter specific
104118 working-directory : ${{github.workspace}}/build
105119 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 == '' }}
106122
107123 - name : Test adapters
108124 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
110126
111127 - name : Get information about platform
112128 if : ${{ always() }}
0 commit comments