Skip to content

Commit 765d74d

Browse files
committed
[DO NOT MERGE]
1 parent 17aa04d commit 765d74d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/build-hw-reusable.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
]
4545
build_type: [Debug, Release]
4646
compiler: [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}]
47+
multiple: [Multiple, Single]
4748
# TODO: The latest L0 loader segfaults when built with clang.
4849
exclude:
4950
- adapter: {name: L0, platform: ""}
@@ -57,6 +58,11 @@ jobs:
5758
build_type: Release
5859
- adapter: {static_adapter: ON}
5960
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++}
6066

6167
runs-on: ${{inputs.runner_name}}
6268

@@ -89,6 +95,7 @@ jobs:
8995
-DUR_SYCL_LIBRARY_DIR=${{github.workspace}}/dpcpp_compiler/lib
9096
${{ matrix.adapter.name == 'HIP' && '-DUR_CONFORMANCE_AMD_ARCH=gfx1030' || '' }}
9197
${{ matrix.adapter.name == 'HIP' && '-DUR_HIP_PLATFORM=AMD' || '' }}
98+
${{ matrix.multiple == 'Multiple' && '-DUR_BUILD_ADAPTER_OPENCL=ON -DUR_BUILD_ADAPTER_L0=ON' || '' }}
9299
93100
- name: Build
94101
# This is so that device binaries can find the sycl runtime library
@@ -97,6 +104,8 @@ jobs:
97104
- name: Test adapter specific
98105
working-directory: ${{github.workspace}}/build
99106
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' }}
100109

101110
- name: Test adapters
102111
working-directory: ${{github.workspace}}/build

source/loader/ur_ldrddi.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,9 @@ __urdlllocal ur_result_t UR_APICALL urDeviceGetInfo(
504504
) {
505505
ur_result_t result = UR_RESULT_SUCCESS;
506506

507+
// For testing - this should explode and fail tests
508+
abort();
509+
507510
[[maybe_unused]] auto context = getContext();
508511

509512
// extract platform's function pointer table

0 commit comments

Comments
 (0)