|
44 | 44 | ]
|
45 | 45 | build_type: [Debug, Release]
|
46 | 46 | compiler: [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}]
|
| 47 | + multiple: [Multiple, Single] |
47 | 48 | # TODO: The latest L0 loader segfaults when built with clang.
|
48 | 49 | exclude:
|
49 | 50 | - adapter: {name: L0, platform: ""}
|
|
57 | 58 | build_type: Release
|
58 | 59 | - adapter: {static_adapter: ON}
|
59 | 60 | compiler: {c: clang, cxx: clang++}
|
| 61 | + # With the "Multiple" jobs, don't bother with every combination |
| 62 | + - multiple: Multiple |
| 63 | + build_type: Release |
| 64 | + - multiple: Multiple |
| 65 | + compiler: {c: clang, cxx: clang++} |
60 | 66 |
|
61 | 67 | runs-on: ${{inputs.runner_name}}
|
62 | 68 |
|
|
89 | 95 | -DUR_SYCL_LIBRARY_DIR=${{github.workspace}}/dpcpp_compiler/lib
|
90 | 96 | ${{ matrix.adapter.name == 'HIP' && '-DUR_CONFORMANCE_AMD_ARCH=gfx1030' || '' }}
|
91 | 97 | ${{ matrix.adapter.name == 'HIP' && '-DUR_HIP_PLATFORM=AMD' || '' }}
|
| 98 | + ${{ matrix.multiple == 'Multiple' && '-DUR_BUILD_ADAPTER_OPENCL=ON -DUR_BUILD_ADAPTER_L0=ON' || '' }} |
92 | 99 |
|
93 | 100 | - name: Build
|
94 | 101 | # This is so that device binaries can find the sycl runtime library
|
|
97 | 104 | - name: Test adapter specific
|
98 | 105 | working-directory: ${{github.workspace}}/build
|
99 | 106 | run: ctest -C ${{matrix.build_type}} --output-on-failure -L "adapter-specific" --timeout 180
|
| 107 | + # Don't run adapter specific tests when building multiple adapters |
| 108 | + if: ${{ matrix.multiple == 'Single' }} |
100 | 109 |
|
101 | 110 | - name: Test adapters
|
102 | 111 | working-directory: ${{github.workspace}}/build
|
|
0 commit comments