Skip to content

Commit 77432c2

Browse files
authored
Merge branch 'main' into yc-0829-move-tracing-before-sanitizer
2 parents 11000d8 + e3910da commit 77432c2

File tree

373 files changed

+13476
-7196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

373 files changed

+13476
-7196
lines changed

.github/docker/install_dpcpp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ if [ "${SKIP_DPCPP_BUILD}" ]; then
1616
fi
1717

1818
mkdir -p ${DPCPP_PATH}/dpcpp_compiler
19-
wget -O ${DPCPP_PATH}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2024-01-29/sycl_linux.tar.gz
19+
wget -O ${DPCPP_PATH}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2024-09-27/sycl_linux.tar.gz
2020
tar -xvf ${DPCPP_PATH}/dpcpp_compiler.tar.gz -C ${DPCPP_PATH}/dpcpp_compiler

.github/workflows/benchmarks_compute.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,32 @@ jobs:
151151
- name: Build SYCL
152152
run: cmake --build ${{github.workspace}}/sycl_build -j
153153

154-
- name: Set oneAPI Device Selector
155-
run: |
156-
echo "ONEAPI_DEVICE_SELECTOR=${{ matrix.adapter.str_name }}:${{ matrix.adapter.unit }}" >> $GITHUB_ENV
154+
- name: Configure UR
155+
run: >
156+
cmake -DCMAKE_BUILD_TYPE=Release
157+
-S${{github.workspace}}/ur-repo
158+
-B${{github.workspace}}/ur_build
159+
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/ur_install
160+
-DUR_BUILD_TESTS=OFF
161+
-DUR_BUILD_ADAPTER_L0=ON
162+
-DUR_BUILD_ADAPTER_L0_V2=ON
163+
-DUMF_DISABLE_HWLOC=ON
164+
165+
- name: Build UR
166+
run: cmake --build ${{github.workspace}}/ur_build -j $(nproc)
167+
168+
- name: Install UR
169+
run: cmake --install ${{github.workspace}}/ur_build
157170

158171
- name: Run benchmarks
159172
id: benchmarks
160-
run: numactl -N 0 ${{ github.workspace }}/ur-repo/scripts/benchmarks/main.py ~/bench_workdir ${{github.workspace}}/sycl_build ${{github.workspace}}/ur-repo ${{ matrix.adapter.str_name }} ${{ inputs.bench_script_params }}
173+
run: >
174+
numactl -N 0 ${{ github.workspace }}/ur-repo/scripts/benchmarks/main.py
175+
~/bench_workdir
176+
${{github.workspace}}/sycl_build
177+
${{github.workspace}}/ur_install
178+
${{ matrix.adapter.str_name }}
179+
${{ inputs.bench_script_params }}
161180
162181
- name: Add comment to PR
163182
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ on:
1818
required: false
1919
type: string
2020
default: OFF
21+
static_adapter:
22+
required: false
23+
type: string
24+
default: OFF
2125

2226
permissions:
2327
contents: read
@@ -36,7 +40,7 @@ jobs:
3640
strategy:
3741
matrix:
3842
adapter: [
39-
{name: "${{inputs.adapter_name}}", platform: "${{inputs.platform}}", static_Loader: "${{inputs.static_loader}}"},
43+
{name: "${{inputs.adapter_name}}", platform: "${{inputs.platform}}", static_Loader: "${{inputs.static_loader}}", static_adapter: "${{inputs.static_loader}}"},
4044
]
4145
build_type: [Debug, Release]
4246
compiler: [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}]
@@ -49,6 +53,10 @@ jobs:
4953
build_type: Release
5054
- adapter: {static_Loader: ON}
5155
compiler: {c: clang, cxx: clang++}
56+
- adapter: {static_adapter: ON}
57+
build_type: Release
58+
- adapter: {static_adapter: ON}
59+
compiler: {c: clang, cxx: clang++}
5260

5361
runs-on: ${{inputs.runner_name}}
5462

@@ -74,17 +82,24 @@ jobs:
7482
-DUR_ENABLE_TRACING=ON
7583
-DUR_DEVELOPER_MODE=ON
7684
-DUR_BUILD_TESTS=ON
85+
-DUR_CONFORMANCE_TEST_LOADER=OFF
7786
-DUR_BUILD_ADAPTER_${{matrix.adapter.name}}=ON
7887
-DUR_STATIC_LOADER=${{matrix.adapter.static_Loader}}
88+
-DUR_STATIC_ADAPTER_${{matrix.adapter.name}}=${{matrix.adapter.static_adapter}}
7989
-DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
8090
-DUR_SYCL_LIBRARY_DIR=${{github.workspace}}/dpcpp_compiler/lib
91+
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
8192
${{ matrix.adapter.name == 'HIP' && '-DUR_CONFORMANCE_AMD_ARCH=gfx1030' || '' }}
8293
${{ matrix.adapter.name == 'HIP' && '-DUR_HIP_PLATFORM=AMD' || '' }}
8394
8495
- name: Build
8596
# This is so that device binaries can find the sycl runtime library
8697
run: cmake --build ${{github.workspace}}/build -j $(nproc)
8798

99+
- name: Install
100+
# This is to check that install command does not fail
101+
run: cmake --install ${{github.workspace}}/build
102+
88103
- name: Test adapter specific
89104
working-directory: ${{github.workspace}}/build
90105
run: ctest -C ${{matrix.build_type}} --output-on-failure -L "adapter-specific" --timeout 180

.github/workflows/cmake.yml

Lines changed: 21 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
compiler: [{c: gcc, cxx: g++}]
2121
libbacktrace: ['-DVAL_USE_LIBBACKTRACE_BACKTRACE=OFF']
2222
pool_tracking: ['-DUMF_ENABLE_POOL_TRACKING=ON', '-DUMF_ENABLE_POOL_TRACKING=OFF']
23-
latency_tracking: ['-DUMF_ENABLE_LATENCY_TRACKING=OFF']
23+
latency_tracking: ['-DUR_ENABLE_LATENCY_HISTOGRAM=OFF']
2424
include:
2525
- os: 'ubuntu-22.04'
2626
build_type: Release
@@ -40,7 +40,7 @@ jobs:
4040
- os: 'ubuntu-22.04'
4141
build_type: Release
4242
compiler: {c: clang, cxx: clang++}
43-
latency_tracking: '-DUMF_ENABLE_LATENCY_TRACKING=ON'
43+
latency_tracking: '-DUR_ENABLE_LATENCY_HISTOGRAM=ON'
4444
runs-on: ${{ (matrix.os == 'ubuntu-22.04' && github.repository_owner == 'oneapi-src') && 'intel-ubuntu-22.04' || matrix.os }}
4545

4646
steps:
@@ -49,7 +49,7 @@ jobs:
4949
- name: Install apt packages
5050
run: |
5151
sudo apt-get update
52-
sudo apt-get install -y doxygen ${{matrix.compiler.c}}
52+
sudo apt-get install -y ${{matrix.compiler.c}}
5353
5454
- name: Install libhwloc
5555
run: .github/scripts/install_hwloc.sh
@@ -62,9 +62,6 @@ jobs:
6262
run: |
6363
sudo apt-get install -y ${{matrix.compiler.cxx}}
6464
65-
- name: Install pip packages
66-
run: pip install -r third_party/requirements.txt
67-
6865
- name: Install libbacktrace
6966
if: matrix.libbacktrace == '-DVAL_USE_LIBBACKTRACE_BACKTRACE=ON'
7067
run: |
@@ -79,7 +76,7 @@ jobs:
7976
if: matrix.os == 'ubuntu-22.04'
8077
run: |
8178
sudo apt install libncurses5
82-
wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2024-01-29/sycl_linux.tar.gz
79+
wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2024-09-27/sycl_linux.tar.gz
8380
mkdir -p ${{github.workspace}}/dpcpp_compiler
8481
tar -xvf ${{github.workspace}}/dpcpp_compiler.tar.gz -C ${{github.workspace}}/dpcpp_compiler
8582
@@ -93,8 +90,9 @@ jobs:
9390
-DUR_ENABLE_TRACING=ON
9491
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
9592
-DUR_BUILD_TESTS=ON
96-
-DUR_FORMAT_CPP_STYLE=ON
93+
-DUR_FORMAT_CPP_STYLE=OFF
9794
-DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
95+
-DUR_CONFORMANCE_TEST_LOADER=OFF
9896
${{matrix.libbacktrace}}
9997
${{matrix.pool_tracking}}
10098
${{matrix.latency_tracking}}
@@ -109,18 +107,11 @@ jobs:
109107
-DUR_ENABLE_TRACING=ON
110108
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
111109
-DUR_BUILD_TESTS=ON
112-
-DUR_FORMAT_CPP_STYLE=ON
110+
-DUR_FORMAT_CPP_STYLE=OFF
113111
${{matrix.libbacktrace}}
114112
${{matrix.pool_tracking}}
115113
${{matrix.latency_tracking}}
116114
117-
- name: Generate source from spec, check for uncommitted diff
118-
if: matrix.os == 'ubuntu-22.04'
119-
run: cmake --build ${{github.workspace}}/build --target check-generated
120-
121-
- name: Verify that each source file contains a license
122-
run: cmake --build ${{github.workspace}}/build --target verify-licenses
123-
124115
- name: Build
125116
run: cmake --build ${{github.workspace}}/build -j $(nproc)
126117

@@ -155,6 +146,7 @@ jobs:
155146
adapter_name: L0
156147
runner_name: L0
157148
static_loader: ON
149+
static_adapter: ON
158150

159151
opencl:
160152
name: OpenCL
@@ -216,7 +208,8 @@ jobs:
216208
os: ['windows-2019', 'windows-2022']
217209
adapter: [
218210
{name: None, var: ''}, {name: L0, var: '-DUR_BUILD_ADAPTER_L0=ON'},
219-
{name: None, var: ''}, {name: L0_V2, var: '-DUR_BUILD_ADAPTER_L0_V2=ON'}
211+
{name: None, var: ''}, {name: L0_V2, var: '-DUR_BUILD_ADAPTER_L0_V2=ON'},
212+
{name: L0, var: '-DUR_BUILD_ADAPTER_L0=ON -DUR_STATIC_ADAPTER_L0=ON'}
220213
]
221214

222215
# TODO: building level zero loader on windows-2019 and clang-cl is currently broken
@@ -225,35 +218,30 @@ jobs:
225218
adapter: {name: L0, var: '-DUR_BUILD_ADAPTER_L0=ON'}
226219
- os: 'windows-2019'
227220
adapter: {name: L0_V2, var: '-DUR_BUILD_ADAPTER_L0_V2=ON'}
221+
- os: 'windows-2019'
222+
adapter: {name: L0, var: '-DUR_BUILD_ADAPTER_L0=ON -DUR_STATIC_ADAPTER_L0=ON'}
228223
- adapter: {name: L0, var: '-DUR_BUILD_ADAPTER_L0=ON'}
229224
compiler: {c: clang-cl, cxx: clang-cl}
230225
- adapter: {name: L0_V2, var: '-DUR_BUILD_ADAPTER_L0_V2=ON'}
231226
compiler: {c: clang-cl, cxx: clang-cl}
227+
- adapter: {name: L0, var: '-DUR_BUILD_ADAPTER_L0=ON -DUR_STATIC_ADAPTER_L0=ON'}
228+
compiler: {c: clang-cl, cxx: clang-cl}
232229

233230
build_type: [Debug, Release]
234231
compiler: [{c: cl, cxx: cl}, {c: clang-cl, cxx: clang-cl}]
235232
include:
236233
- compiler: {c: clang-cl, cxx: clang-cl}
237234
toolset: "-T ClangCL"
235+
- os: 'windows-2022'
236+
adapter: {name: L0, var: '-DUR_BUILD_ADAPTER_L0=ON -DUR_STATIC_ADAPTER_L0=ON'}
237+
build_type: 'Release'
238+
compiler: {c: cl, cxx: cl}
239+
238240
runs-on: ${{matrix.os}}
239241

240242
steps:
241243
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
242244

243-
- uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
244-
with:
245-
python-version: 3.9
246-
247-
- name: Install prerequisites
248-
run: python3 -m pip install -r third_party/requirements.txt
249-
250-
- name: Install doxygen
251-
run: |
252-
$WorkingDir = $PWD.Path
253-
Invoke-WebRequest -Uri https://github.com/doxygen/doxygen/releases/download/Release_1_9_8/doxygen-1.9.8.windows.x64.bin.zip -OutFile "$WorkingDir\doxygen.zip"
254-
Expand-Archive -Path "$WorkingDir\doxygen.zip"
255-
Add-Content $env:GITHUB_PATH "$WorkingDir\doxygen"
256-
257245
- name: Install hwloc
258246
run: vcpkg install hwloc:x64-windows
259247

@@ -271,14 +259,10 @@ jobs:
271259
-DUR_ENABLE_TRACING=ON
272260
-DUR_DEVELOPER_MODE=ON
273261
-DUR_BUILD_TESTS=ON
274-
-DUR_FORMAT_CPP_STYLE=ON
262+
-DUR_FORMAT_CPP_STYLE=OFF
263+
-DUR_CONFORMANCE_TEST_LOADER=OFF
275264
${{matrix.adapter.var}}
276265
277-
# TODO: re-enable when check-generated is fixed for windows runners see #888
278-
# - name: Generate source from spec, check for uncommitted diff
279-
# if: matrix.os == 'windows-2022'
280-
# run: cmake --build ${{github.workspace}}/build --target check-generated --config ${{matrix.build_type}}
281-
282266
- name: Build all
283267
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} -j $Env:NUMBER_OF_PROCESSORS
284268

.github/workflows/e2e_core.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,6 @@ jobs:
169169
-DCMAKE_CXX_COMPILER="$(which clang++)"
170170
-DLLVM_LIT="${{github.workspace}}/sycl-repo/llvm/utils/lit/lit.py"
171171
172-
- name: Set LIT_XFAIL_NOT
173-
if: inputs.xfail_not != ''
174-
run: echo "LIT_XFAIL_NOT=${{inputs.xfail_not}}" >> $GITHUB_ENV
175-
176172
- name: Set LIT_XFAIL
177173
if: inputs.xfail != ''
178174
run: echo "LIT_XFAIL=${{inputs.xfail}}" >> $GITHUB_ENV
@@ -181,6 +177,10 @@ jobs:
181177
if: inputs.filter_out != ''
182178
run: echo "LIT_FILTER_OUT=${{inputs.filter_out}}" >> $GITHUB_ENV
183179

180+
- name: Set LIT_XFAIL_NOT
181+
if: inputs.xfail_not != ''
182+
run: echo "LIT_XFAIL_NOT=${{inputs.xfail_not}}" >> $GITHUB_ENV
183+
184184
# TODO: remove once intel/llvm lit tests can properly recognize the GPU
185185
- name: Configure hardware platform feature for L0
186186
if: matrix.adapter.name == 'L0'

.github/workflows/e2e_cuda.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ jobs:
2121
config: "--cuda"
2222
unit: "gpu"
2323
extra_lit_flags: "-sv --max-time=3600"
24+
xfail: "Regression/device_num.cpp"

.github/workflows/e2e_level_zero.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ jobs:
2121
config: ""
2222
unit: "gpu"
2323
# Failing tests
24-
xfail: "DeviceCodeSplit/grf.cpp;ESIMD/grf.cpp;ESIMD/mask_expand_load.cpp;KernelAndProgram/target_register_alloc_mode.cpp;Matrix/SG32/get_coord_int8_matB.cpp;Matrix/get_coord_int8_matB.cpp;Matrix/joint_matrix_prefetch.cpp;Matrix/joint_matrix_rowmajorA_rowmajorB.cpp; SYCL :: ESIMD/mask_expand_load.cpp;Matrix/SPVCooperativeMatrix/joint_matrix_bf16_fill_k_cache_OOB.cpp;Matrix/SPVCooperativeMatrix/joint_matrix_out_bounds.cpp;Matrix/SPVCooperativeMatrix/joint_matrix_prefetch.cpp;Matrix/SPVCooperativeMatrix/joint_matrix_rowmajorA_rowmajorB.cpp;Matrix/element_wise_all_ops_1d.cpp;Matrix/element_wise_all_ops_1d_cont.cpp;Matrix/element_wise_all_ops_scalar.cpp;Matrix/joint_matrix_bf16_fill_k_cache_OOB.cpp;Matrix/joint_matrix_bf16_fill_k_cache_prefetch.cpp;Matrix/joint_matrix_out_bounds.cpp;Matrix/joint_matrix_unaligned_k.cpp"
24+
xfail: "InvokeSimd/Regression/call_vadd_1d_spill.cpp;InvokeSimd/Regression/ImplicitSubgroup/call_vadd_1d_spill.cpp;ESIMD/mask_expand_load.cpp;Matrix/joint_matrix_prefetch.cpp;ESIMD/mask_expand_load.cpp;Matrix/SPVCooperativeMatrix/joint_matrix_prefetch.cpp;Matrix/joint_matrix_bf16_fill_k_cache_prefetch.cpp;Matrix/SPVCooperativeMatrix/element_wise_ops.cpp;"
25+
# Unexpectedly Passed Tests
26+
xfail_not: ""
2527
# Flaky tests
26-
filter_out: "ESIMD/named_barriers/loop_extended.cpp;ESIMD/local_accessor_copy_to_from.cpp;"
28+
filter_out: "Basic/accessor/accessor.cpp|DeviceArchitecture/device_architecture_comparison_on_device_aot.cpp|Graph/Explicit/interop-level-zero-launch-kernel.cpp|Graph/RecordReplay/interop-level-zero-launch-kernel.cpp|syclcompat/launch/launch_policy_lmem.cpp"
2729
# These runners by default spawn upwards of 260 workers.
2830
# We also add a time out just in case some test hangs
2931
extra_lit_flags: "--param gpu-intel-pvc=True --param gpu-intel-pvc-1T=True -sv -j 100 --max-time=3600"

.github/workflows/e2e_opencl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ jobs:
2020
prefix: ""
2121
config: ""
2222
unit: "cpu"
23-
xfail: "AOT/double.cpp;AOT/half.cpp;AOT/reqd-sg-size.cpp;Basic/built-ins/marray_geometric.cpp;KernelCompiler/kernel_compiler_spirv.cpp;KernelCompiler/opencl_queries.cpp"
23+
xfail: "AOT/double.cpp;AOT/half.cpp;AOT/reqd-sg-size.cpp;Basic/built-ins/marray_geometric.cpp;KernelCompiler/kernel_compiler_spirv.cpp;KernelCompiler/opencl_queries.cpp;NonUniformGroups/ballot_group.cpp;NonUniformGroups/ballot_group_algorithms.cpp;NonUniformGroups/fixed_size_group_algorithms.cpp;NonUniformGroups/opportunistic_group.cpp;NonUniformGroups/opportunistic_group_algorithms.cpp;NonUniformGroups/tangle_group.cpp;NonUniformGroups/tangle_group_algorithms.cpp"
2424
extra_lit_flags: "-sv --max-time=3600"

.github/workflows/multi_device.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
strategy:
1818
matrix:
1919
adapter: [
20-
{name: L0}
20+
{name: L0},
21+
{name: L0_V2}
2122
]
2223
build_type: [Debug, Release]
2324
compiler: [{c: gcc, cxx: g++}] # TODO: investigate why memory-adapter-level_zero hangs with clang
@@ -30,12 +31,11 @@ jobs:
3031
- name: Install pip packages
3132
run: pip install -r third_party/requirements.txt
3233

33-
# TODO: enable once test failure are fixed/ignored
34-
# - name: Download DPC++
35-
# run: |
36-
# wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2024-01-29/sycl_linux.tar.gz
37-
# mkdir dpcpp_compiler
38-
# tar -xvf ${{github.workspace}}/dpcpp_compiler.tar.gz -C dpcpp_compiler
34+
- name: Download DPC++
35+
run: |
36+
wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2024-01-29/sycl_linux.tar.gz
37+
mkdir dpcpp_compiler
38+
tar -xvf ${{github.workspace}}/dpcpp_compiler.tar.gz -C dpcpp_compiler
3939
4040
- name: Configure CMake
4141
shell: bash -el {0}
@@ -48,7 +48,10 @@ jobs:
4848
-DUR_DEVELOPER_MODE=ON
4949
-DUR_BUILD_TESTS=ON
5050
-DUR_BUILD_ADAPTER_${{matrix.adapter.name}}=ON
51+
-DUR_CONFORMANCE_TEST_LOADER=OFF
5152
-DUR_TEST_DEVICES_COUNT=2
53+
-DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
54+
-DUR_SYCL_LIBRARY_DIR=${{github.workspace}}/dpcpp_compiler/lib
5255
5356
- name: Build
5457
run: cmake --build ${{github.workspace}}/build -j $(nproc)
@@ -60,4 +63,4 @@ jobs:
6063

6164
- name: Test adapters
6265
working-directory: ${{github.workspace}}/build
63-
run: env UR_CTS_ADAPTER_PLATFORM="${{matrix.adapter.platform}}" ctest -C ${{matrix.build_type}} --output-on-failure -L "conformance" --timeout 180
66+
run: env UR_CTS_ADAPTER_PLATFORM="${{matrix.adapter.platform}}" ctest -C ${{matrix.build_type}} --output-on-failure -L "conformance" -E "enqueue|kernel|program|integration|exp_command_buffer|exp_enqueue_native|exp_launch_properties|exp_usm_p2p" --timeout 180

0 commit comments

Comments
 (0)