Skip to content

Commit 1110579

Browse files
committed
Merge remote-tracking branch 'origin/sycl' into llvmspirv_pulldown
Conflicts: libclc/clc/lib/generic/math/clc_sw_fma.cl libclc/libspirv/lib/generic/math/clc_hypot.cl libclc/libspirv/lib/generic/math/clc_pow.cl libclc/libspirv/lib/generic/math/frexp.inc libclc/libspirv/lib/generic/math/nan.cl libclc/libspirv/lib/generic/math/sincos_helpers.cl sycl/test/check_device_code/extensions/address_cast.cpp sycl/test/check_device_code/vector/as.cpp sycl/test/check_device_code/vector/bf16_builtins.cpp sycl/test/check_device_code/vector/bf16_builtins_preview.cpp sycl/test/check_device_code/vector/convert_bfloat.cpp sycl/test/check_device_code/vector/convert_bfloat_preview.cpp sycl/test/check_device_code/vector/math_ops.cpp sycl/test/check_device_code/vector/math_ops_preview.cpp
2 parents 00209f6 + 7369251 commit 1110579

File tree

185 files changed

+4587
-3925
lines changed

Some content is hidden

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

185 files changed

+4587
-3925
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ llvm/include/llvm/SYCLLowerIR/SYCLCreateNVVMAnnotations.h @intel/llvm-reviewers-
7575
llvm/lib/SYCLLowerIR/SYCLCreateNVVMAnnotations.cpp @intel/llvm-reviewers-cuda
7676
llvm/lib/Target/NVPTX @intel/llvm-reviewers-cuda
7777
llvm/lib/Target/AMDGPU @intel/llvm-reviewers-cuda
78+
unified-runtime/source/common/cuda-hip @intel/llvm-reviewers-cuda
7879

7980
# XPTI instrumentation utilities
8081
xpti/ @intel/llvm-reviewers-runtime

.github/workflows/sycl-linux-precommit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ on:
2222
- '.github/workflows/sycl-macos-*.yml'
2323
- '.github/workflows/sycl-nightly.yml'
2424
- '.github/workflows/sycl-rel-nightly.yml'
25+
- '.github/workflows/trivy.yml'
2526
- 'devops/containers/**'
2627
- 'devops/actions/build_container/**'
2728

.github/workflows/sycl-rel-nightly.yml

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
build_cache_root: "/__w/"
4646
build_artifact_suffix: default
47-
build_configure_extra_args: '--hip --cuda'
47+
build_configure_extra_args: '--no-assertions --add_security_flags=sanitize --hip --cuda'
4848
build_image: ghcr.io/intel/llvm/ubuntu2204_build:latest
4949
build_ref: ${{ inputs.testing_branch || 'sycl-rel-6_1_0' }}
5050

@@ -63,34 +63,35 @@ jobs:
6363
runner: '["Linux", "amdgpu"]'
6464
image_options: -u 1001 --device=/dev/dri --device=/dev/kfd
6565
target_devices: hip:gpu
66-
tests_selector: e2e
6766

68-
- name: Intel L0 GPU
67+
- name: Intel L0 Gen12 GPU
6968
runner: '["Linux", "gen12"]'
7069
image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
7170
target_devices: level_zero:gpu
72-
tests_selector: e2e
7371
extra_lit_opts: --param gpu-intel-gen12=True
7472

75-
- name: Intel OCL GPU
73+
- name: Intel L0 Battlemage GPU
74+
runner: '["Linux", "bmg"]'
75+
image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
76+
target_devices: level_zero:gpu
77+
78+
- name: Intel OCL Gen12 GPU
7679
runner: '["Linux", "gen12"]'
7780
image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
7881
target_devices: opencl:gpu
79-
tests_selector: e2e
8082
extra_lit_opts: --param gpu-intel-gen12=True
8183

8284
- name: Intel OCL CPU
8385
runner: '["Linux", "gen12"]'
8486
image_options: -u 1001 --privileged --cap-add SYS_ADMIN
8587
target_devices: opencl:cpu
86-
tests_selector: e2e
8788
uses: ./.github/workflows/sycl-linux-run-tests.yml
8889
with:
8990
name: ${{ matrix.name }}
9091
runner: ${{ matrix.runner }}
9192
image_options: ${{ matrix.image_options }}
9293
target_devices: ${{ matrix.target_devices }}
93-
tests_selector: ${{ matrix.tests_selector }}
94+
tests_selector: e2e
9495
extra_lit_opts: ${{ matrix.extra_lit_opts }}
9596
repo_ref: ${{ inputs.testing_branch || 'sycl-rel-6_1_0' }}
9697
devops_ref: sycl
@@ -104,6 +105,7 @@ jobs:
104105
uses: ./.github/workflows/sycl-windows-build.yml
105106
with:
106107
ref: ${{ inputs.testing_branch || 'sycl-rel-6_1_0' }}
108+
build_configure_extra_args: '--no-assertions --add_security_flags=sanitize'
107109

108110
# We upload both Linux/Windows build via Github's "Releases"
109111
# functionality, make sure Linux/Windows names follow the same pattern.
@@ -116,12 +118,22 @@ jobs:
116118
always()
117119
&& !cancelled()
118120
&& needs.build-win.outputs.build_conclusion == 'success'
121+
strategy:
122+
fail-fast: false
123+
matrix:
124+
include:
125+
- name: Intel GEN12 Graphics with Level Zero
126+
runner: '["Windows","gen12"]'
127+
# 6_1_0 doesn't support the auto-detection, keep it until 6_2_0.
128+
extra_lit_opts: --param gpu-intel-gen12=True
129+
- name: Intel Battlemage Graphics with Level Zero
130+
runner: '["Windows","bmg"]'
119131
uses: ./.github/workflows/sycl-windows-run-tests.yml
120132
with:
121-
name: Intel GEN12 Graphics with Level Zero
122-
runner: '["Windows","gen12"]'
133+
name: ${{ matrix.name }}
134+
runner: ${{ matrix.runner }}
123135
sycl_toolchain_archive: ${{ needs.build-win.outputs.artifact_archive_name }}
124-
extra_lit_opts: --param gpu-intel-gen12=True
136+
extra_lit_opts: ${{ matrix.extra_lit_opts }}
125137
repo_ref: ${{ inputs.testing_branch || 'sycl-rel-6_1_0' }}
126138
devops_ref: sycl
127139

.github/workflows/sycl-windows-precommit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121
- '.github/workflows/sycl-macos-*.yml'
2222
- '.github/workflows/sycl-nightly.yml'
2323
- '.github/workflows/sycl-rel-nightly.yml'
24+
- '.github/workflows/trivy.yml'
2425
- 'devops/containers/**'
2526
- 'devops/actions/build_container/**'
2627

.github/workflows/sycl-windows-run-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,14 @@ jobs:
117117
echo "C:\Program Files\Git\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
118118
- name: Register cleanup after job is finished
119119
uses: ./devops/actions/cleanup
120-
- uses: ./devops/actions/cached_checkout
120+
- uses: actions/checkout@v4
121121
if: inputs.tests_selector == 'e2e'
122122
with:
123123
path: llvm
124124
ref: ${{ inputs.repo_ref || github.sha }}
125-
cache_path: "D:\\\\github\\\\_work\\\\repo_cache\\\\"
125+
sparse-checkout: |
126+
llvm/utils/lit
127+
sycl/test-e2e
126128
- name: Download compiler toolchain
127129
uses: actions/download-artifact@v4
128130
with:

.github/workflows/trivy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
run: ./bin/trivy config --format json --output trivy-report.json --ignorefile=devops/.trivyignore.yaml devops/containers --exit-code 1
3131

3232
- name: Upload report artifact
33+
if: always() && !cancelled()
3334
uses: actions/upload-artifact@v4
3435
with:
3536
name: trivy-report

clang/test/CodeGenSYCL/sub-group-size.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ using namespace sycl;
1515
// ALL-DAG: define {{.*}}spir_func void @{{.*}}external_10{{.*}}() #{{[0-9]+}}{{.*}} !intel_reqd_sub_group_size ![[TEN:[0-9]+]]
1616

1717
SYCL_EXTERNAL void external_default_behavior() {}
18-
// NONE-DAG: define {{.*}}spir_func void @{{.*}}external_default_behavior{{.*}}() #{{[0-9]+}} !srcloc !{{[0-9]+}} !sycl_fixed_targets !{{[0-9]+}} {
18+
// NONE-DAG: define {{.*}}spir_func void @{{.*}}external_default_behavior{{.*}}() #{{[0-9]+}} !sycl_fixed_targets !{{[0-9]+}} {
1919
// PRIM_DEF-DAG: define {{.*}}spir_func void @{{.*}}external_default_behavior{{.*}}() #{{[0-9]+}}{{.*}} !intel_reqd_sub_group_size ![[PRIMARY]]
2020
// TEN_DEF-DAG: define {{.*}}spir_func void @{{.*}}external_default_behavior{{.*}}() #{{[0-9]+}}{{.*}} !intel_reqd_sub_group_size ![[TEN]]
2121

2222
void default_behavior() {
2323
kernel_single_task<class Kernel1>([]() {
2424
});
2525
}
26-
// NONE-DAG: define {{.*}}spir_kernel void @{{.*}}Kernel1() #{{[0-9]+}} !srcloc !{{[0-9]+}} !kernel_arg_buffer_location !{{[0-9]+}} !sycl_fixed_targets !{{[0-9]+}} {
26+
// NONE-DAG: define {{.*}}spir_kernel void @{{.*}}Kernel1() #{{[0-9]+}} !kernel_arg_buffer_location !{{[0-9]+}} !sycl_fixed_targets !{{[0-9]+}} {
2727
// PRIM_DEF-DAG: define {{.*}}spir_kernel void @{{.*}}Kernel1() #{{[0-9]+}}{{.*}} !intel_reqd_sub_group_size ![[PRIMARY]]
2828
// TEN_DEF-DAG: define {{.*}}spir_kernel void @{{.*}}Kernel1() #{{[0-9]+}}{{.*}} !intel_reqd_sub_group_size ![[TEN]]
2929

devops/actions/run-tests/e2e/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ runs:
2323
using: "composite"
2424
steps:
2525
- name: Checkout E2E tests
26-
uses: ./devops/actions/cached_checkout
26+
uses: actions/checkout@v4
2727
with:
2828
path: llvm
2929
ref: ${{ inputs.ref || github.sha }}
30-
cache_path: "/__w/repo_cache/"
30+
sparse-checkout: |
31+
llvm/utils/lit
32+
sycl/test-e2e
3133
3234
- name: Download E2E Binaries
3335
if: inputs.testing_mode == 'run-only'

devops/dependencies-igc-dev.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"linux": {
33
"igc_dev": {
4-
"github_tag": "igc-dev-81b4de2",
5-
"version": "81b4de2",
6-
"updated_at": "2025-03-29T17:38:03Z",
7-
"url": "https://api.github.com/repos/intel/intel-graphics-compiler/actions/artifacts/2844658814/zip",
4+
"github_tag": "igc-dev-b74b7ab",
5+
"version": "b74b7ab",
6+
"updated_at": "2025-04-02T18:41:33Z",
7+
"url": "https://api.github.com/repos/intel/intel-graphics-compiler/actions/artifacts/2869865189/zip",
88
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
99
}
1010
}

devops/scripts/benchmarks/benches/base.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,20 @@ def unstable(self) -> str:
129129
def get_tags(self) -> list[str]:
130130
return []
131131

132+
def range(self) -> tuple[float, float]:
133+
return None
134+
132135
def get_metadata(self) -> BenchmarkMetadata:
136+
range = self.range()
137+
133138
return BenchmarkMetadata(
134139
type="benchmark",
135140
description=self.description(),
136141
notes=self.notes(),
137142
unstable=self.unstable(),
138143
tags=self.get_tags(),
144+
range_min=range[0] if range else None,
145+
range_max=range[1] if range else None,
139146
)
140147

141148

0 commit comments

Comments
 (0)