Skip to content

Commit c94a853

Browse files
committed
Merge commit '63959512e8e9' into llvmspirv_pulldown
2 parents 8360df7 + 6395951 commit c94a853

File tree

111 files changed

+1842
-1233
lines changed

Some content is hidden

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

111 files changed

+1842
-1233
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

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/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

devops/scripts/benchmarks/benches/compute.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def additionalMetadata(self) -> dict[str, BenchmarkMetadata]:
9292
"The UR v2 adapter noticeably reduces UR layer overhead, also improving SYCL performance.\n"
9393
"Work is ongoing to reduce the overhead of the SYCL API\n",
9494
tags=["submit", "micro", "SYCL", "UR", "L0"],
95+
range_min=0.0,
9596
),
9697
"SinKernelGraph": BenchmarkMetadata(
9798
type="group",
@@ -294,11 +295,9 @@ def name(self):
294295
return f"api_overhead_benchmark_{self.runtime.value} SubmitKernel {order}{completion_str}"
295296

296297
def explicit_group(self):
297-
return (
298-
"SubmitKernel"
299-
if self.measure_completion == 0
300-
else "SubmitKernel With Completion"
301-
)
298+
order = "In Order" if self.ioq else "Out Of Order"
299+
completion_str = " With Completion" if self.measure_completion else ""
300+
return f"SubmitKernel {order}{completion_str}"
302301

303302
def description(self) -> str:
304303
order = "in-order" if self.ioq else "out-of-order"
@@ -317,6 +316,9 @@ def description(self) -> str:
317316
f"Runs 10 simple kernels with minimal execution time to isolate API overhead from kernel execution time. {l0_specific}"
318317
)
319318

319+
def range(self) -> tuple[float, float]:
320+
return (0.0, None)
321+
320322
def bin_args(self) -> list[str]:
321323
return [
322324
f"--Ioq={self.ioq}",

devops/scripts/benchmarks/history.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,18 @@ def create_run(self, name: str, results: list[Result]) -> BenchmarkRun:
7777
git_hash = "unknown"
7878
github_repo = None
7979

80+
compute_runtime = (
81+
options.compute_runtime_tag if options.build_compute_runtime else None
82+
)
83+
8084
return BenchmarkRun(
8185
name=name,
8286
git_hash=git_hash,
8387
github_repo=github_repo,
8488
date=datetime.now(tz=timezone.utc),
8589
results=results,
8690
hostname=socket.gethostname(),
91+
compute_runtime=compute_runtime,
8792
)
8893

8994
def save(self, save_name, results: list[Result], to_file=True):

0 commit comments

Comments
 (0)