Skip to content

Commit a35ee20

Browse files
committed
Merge remote-tracking branch 'origin/sycl' into private/asachkov/detach-unittests-from-ur
2 parents 4ce85c6 + 8aa4e78 commit a35ee20

File tree

438 files changed

+5221
-2312
lines changed

Some content is hidden

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

438 files changed

+5221
-2312
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ buildbot/ @intel/dpcpp-devops-reviewers
103103
devops/ @intel/dpcpp-devops-reviewers
104104

105105
# Kernel fusion JIT compiler
106-
sycl-fusion/ @intel/dpcpp-kernel-fusion-reviewers
106+
sycl-jit/ @intel/dpcpp-kernel-fusion-reviewers
107107
sycl/doc/design/KernelFusionJIT.md @intel/dpcpp-kernel-fusion-reviewers
108108
sycl/doc/extensions/experimental/sycl_ext_codeplay_kernel_fusion.asciidoc @intel/dpcpp-kernel-fusion-reviewers
109109
sycl/include/sycl/ext/codeplay/experimental/fusion_properties.hpp @intel/dpcpp-kernel-fusion-reviewers

.github/workflows/sycl-aws.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,18 @@ on:
1414
# See devops/actions/aws-ec2/action.yml for more details.
1515
description: "JSON string with array of objects with aws-type, runs-on, aws-ami, aws-spot, aws-disk, aws-timebomb, one-job properties"
1616
type: string
17-
required: true
17+
default: '[{"runs-on":"aws_cuda-${{ github.run_id }}-${{ github.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]'
1818

1919
jobs:
2020
aws:
2121
runs-on: ubuntu-20.04
2222
environment: aws
2323
steps:
24-
- name: Setup script
25-
run: |
26-
mkdir -p ./aws-ec2
27-
wget raw.githubusercontent.com/intel/llvm/sycl/devops/actions/aws-ec2/action.yml -P ./aws-ec2
28-
wget raw.githubusercontent.com/intel/llvm/sycl/devops/actions/aws-ec2/aws-ec2.js -P ./aws-ec2
29-
wget raw.githubusercontent.com/intel/llvm/sycl/devops/actions/aws-ec2/package.json -P ./aws-ec2
30-
npm install ./aws-ec2
31-
- name: Start AWS EC2 runners
32-
uses: ./aws-ec2
24+
- uses: actions/checkout@v4
25+
with:
26+
sparse-checkout: devops/actions/aws-ec2
27+
- run: npm install ./devops/actions/aws-ec2
28+
- uses: ./devops/actions/aws-ec2
3329
with:
3430
mode: ${{ inputs.mode }}
3531
runs-on-list: ${{ inputs.runs-on-list }}

.github/workflows/sycl-detect-changes.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
clang: &clang
3131
- *llvm
3232
- 'clang/**'
33-
sycl_fusion: &sycl-fusion
33+
sycl_jit: &sycl-jit
3434
- *llvm
35-
- 'sycl-fusion/**'
35+
- 'sycl-jit/**'
3636
xptifw: &xptifw
3737
- 'xptifw/**'
3838
libclc: &libclc
@@ -41,7 +41,7 @@ jobs:
4141
- 'libclc/**'
4242
sycl: &sycl
4343
- *clang
44-
- *sycl-fusion
44+
- *sycl-jit
4545
- *llvm_spirv
4646
- *xptifw
4747
- *libclc
@@ -84,7 +84,7 @@ jobs:
8484
return '${{ steps.changes.outputs.changes }}';
8585
}
8686
// Treat everything as changed for huge PRs.
87-
return ["llvm", "llvm_spirv", "clang", "sycl_fusion", "xptifw", "libclc", "sycl", "ci", "esimd"];
87+
return ["llvm", "llvm_spirv", "clang", "sycl_jit", "xptifw", "libclc", "sycl", "ci", "esimd"];
8888
8989
- run: echo '${{ steps.result.outputs.result }}'
9090

.github/workflows/sycl-linux-matrix-e2e-on-nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ jobs:
3030
image: ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:latest
3131
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
3232
target_devices: level_zero:gpu
33-
reset_gpu: true
33+
reset_intel_gpu: true
3434

3535
- name: Intel OCL GPU
3636
runner: '["Linux", "gen12"]'
3737
image: ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:latest
3838
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
3939
target_devices: opencl:gpu
40-
reset_gpu: true
40+
reset_intel_gpu: true
4141

4242
- name: OCL CPU
4343
runner: '["Linux", "x86-cpu"]'
@@ -57,7 +57,7 @@ jobs:
5757
image: ${{ matrix.image }}
5858
image_options: ${{ matrix.image_options }}
5959
target_devices: ${{ matrix.target_devices }}
60-
reset_gpu: ${{ matrix.reset_gpu }}
60+
reset_intel_gpu: ${{ matrix.reset_intel_gpu }}
6161
env: ${{ inputs.env }}
6262
ref: ${{ github.sha }}
6363
merge_ref: ''

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: E2E on AWS CUDA
22
run-name: E2E on AWS CUDA - ${{ github.event.workflow_run.display_title }}
3+
# Note: This workflow is currently disabled in the Github Actions UI because
4+
# we run CUDA testing on the self-hosted runners.
35
# We have to keep pre-commit AWS CUDA testing in a separate workflow because we
46
# need access to AWS secret and that isn't available on pull_request jobs for
57
# PRs from forks. And github's "require approval for all outside collaborators"

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

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,20 @@ jobs:
8181
image: ghcr.io/intel/llvm/ubuntu2204_build:latest
8282
image_options: -u 1001 --gpus all --cap-add SYS_ADMIN
8383
target_devices: ext_oneapi_cuda:gpu
84-
- name: AMD/HIP
85-
runner: '["Linux", "amdgpu"]'
86-
image: ghcr.io/intel/llvm/ubuntu2204_build:latest-0300ac924620a51f76c4929794637b82790f12ab
87-
image_options: -u 1001 --device=/dev/dri --device=/dev/kfd
88-
target_devices: ext_oneapi_hip:gpu
8984
- name: Intel
9085
runner: '["Linux", "gen12"]'
9186
image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
9287
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
9388
target_devices: level_zero:gpu;opencl:gpu;opencl:cpu
94-
reset_gpu: true
89+
reset_intel_gpu: true
9590
install_drivers: ${{ contains(needs.detect_changes.outputs.filters, 'drivers') }}
9691
extra_lit_opts: --param gpu-intel-gen12=True
9792
- name: E2E tests on Intel Arc A-Series Graphics
9893
runner: '["Linux", "arc"]'
9994
image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
10095
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
10196
target_devices: level_zero:gpu;opencl:gpu
102-
reset_gpu: true
97+
reset_intel_gpu: true
10398
install_drivers: ${{ contains(needs.detect_changes.outputs.filters, 'drivers') }}
10499
extra_lit_opts: --param matrix-xmx8=True --param gpu-intel-dg2=True
105100
env: '{"LIT_FILTER":${{ needs.determine_arc_tests.outputs.arc_tests }} }'
@@ -108,7 +103,7 @@ jobs:
108103
image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:${{ contains(github.event.pull_request.labels.*.name, 'ci-no-devigc') && 'latest' || 'devigc' }}
109104
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
110105
target_devices: level_zero:gpu;opencl:gpu
111-
reset_gpu: true
106+
reset_intel_gpu: true
112107
install_drivers: >-
113108
${{ contains(needs.detect_changes.outputs.filters, 'drivers') ||
114109
contains(needs.detect_changes.outputs.filters, 'devigccfg') }}
@@ -123,7 +118,7 @@ jobs:
123118
image: ${{ matrix.image }}
124119
image_options: ${{ matrix.image_options }}
125120
target_devices: ${{ matrix.target_devices }}
126-
reset_gpu: ${{ matrix.reset_gpu }}
121+
reset_intel_gpu: ${{ matrix.reset_intel_gpu }}
127122
install_drivers: ${{ matrix.install_drivers }}
128123
use_dev_igc: ${{ matrix.use_dev_igc }}
129124
extra_lit_opts: ${{ matrix.extra_lit_opts }}
@@ -152,12 +147,12 @@ jobs:
152147
runner: '["Linux", "gen12"]'
153148
image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
154149
image_extra_opts: --device=/dev/dri
155-
reset_gpu: true
150+
reset_intel_gpu: true
156151
- name: Intel Arc A-Series Graphics system
157152
runner: '["Linux", "arc"]'
158153
image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
159154
image_extra_opts: --device=/dev/dri
160-
reset_gpu: true
155+
reset_intel_gpu: true
161156
- name: AMD system
162157
runner: '["Linux", "amdgpu"]'
163158
image: ghcr.io/intel/llvm/ubuntu2204_build:latest
@@ -174,7 +169,7 @@ jobs:
174169
image: ${{ matrix.image }}
175170
image_options: -u 1001 --privileged --cap-add SYS_ADMIN ${{ matrix.image_extra_opts }}
176171
target_devices: all
177-
reset_gpu: ${{ matrix.reset_gpu }}
172+
reset_intel_gpu: ${{ matrix.reset_intel_gpu }}
178173

179174
env: '{"LIT_FILTER":"PerformanceTests/"}'
180175
extra_lit_opts: -a -j 1 --param enable-perf-tests=True

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

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ on:
6262
default: ''
6363
required: False
6464

65-
reset_gpu:
65+
reset_intel_gpu:
6666
type: string
6767
required: False
6868
install_drivers:
@@ -153,8 +153,8 @@ jobs:
153153
options: ${{ inputs.image_options }}
154154
env: ${{ fromJSON(inputs.env) }}
155155
steps:
156-
- name: Reset GPU
157-
if: inputs.reset_gpu == 'true'
156+
- name: Reset Intel GPU
157+
if: inputs.reset_intel_gpu == 'true'
158158
run: |
159159
sudo mount -t debugfs none /sys/kernel/debug
160160
sudo bash -c 'echo 1 > /sys/kernel/debug/dri/0/i915_wedged'
@@ -300,36 +300,32 @@ jobs:
300300
awk '/^Failed Tests|Unexpectedly Passed Tests|Unresolved tests|Testing Time/{flag=1}/FAILED: CMakeFiles/{flag=0}flag' e2e.log >> $GITHUB_STEP_SUMMARY
301301
fi
302302
exit $exit_code
303-
- name: List excluded SYCL CTS categories
304-
if: inputs.tests_selector == 'cts' && env.CTS_TESTS_TO_BUILD == ''
305-
run: |
306-
if [ "${{ contains(inputs.target_devices, 'opencl:cpu') }}" = "true" ]; then
307-
cat $PWD/devops/cts_exclude_filter_OCL_CPU
308-
fi
309-
if [ "${{ contains(inputs.target_devices, 'level_zero:gpu') }}" = "true" ]; then
310-
cat $PWD/devops/cts_exclude_filter_L0_GPU
311-
fi
312303
- name: Build SYCL CTS tests
313304
if: inputs.tests_selector == 'cts'
314305
env:
315306
CMAKE_EXTRA_ARGS: ${{ inputs.extra_cmake_args }}
316307
run: |
317-
# Do not exclude any category if passing the CTS_TESTS_TO_BUILD variable.
318308
cts_exclude_filter=""
309+
# If CTS_TESTS_TO_BUILD is null - use filter
319310
if [ -z "$CTS_TESTS_TO_BUILD" ]; then
320311
if [ "${{ contains(inputs.target_devices, 'opencl:cpu') }}" = "true" ]; then
321312
cts_exclude_filter=$PWD/devops/cts_exclude_filter_OCL_CPU
322-
fi
323-
if [ "${{ contains(inputs.target_devices, 'level_zero:gpu') }}" = "true" ]; then
313+
elif [ "${{ contains(inputs.target_devices, 'level_zero:gpu') }}" = "true" ]; then
324314
cts_exclude_filter=$PWD/devops/cts_exclude_filter_L0_GPU
325315
fi
316+
317+
# List excluded SYCL CTS categories:
318+
# SYCL_CTS_EXCLUDE_TEST_CATEGORIES - Optional file specifying a list
319+
# of test categories to be excluded from the build.
320+
echo "::group::Excluded test categories"
321+
cat $cts_exclude_filter
322+
echo "::endgroup::"
326323
fi
327324
328325
cmake -GNinja -B./build-cts -S./khronos_sycl_cts -DCMAKE_CXX_COMPILER=$(which clang++) \
329326
-DSYCL_IMPLEMENTATION=DPCPP \
330327
-DSYCL_CTS_EXCLUDE_TEST_CATEGORIES="$cts_exclude_filter" \
331328
-DSYCL_CTS_ENABLE_OPENCL_INTEROP_TESTS=OFF \
332-
-DSYCL_CTS_MEASURE_BUILD_TIMES=ON \
333329
-DDPCPP_INSTALL_DIR="$(dirname $(which clang++))/.." \
334330
$CMAKE_EXTRA_ARGS
335331
# Ignore errors so that if one category build fails others still have a

.github/workflows/sycl-nightly.yml

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,12 @@ jobs:
3737
target_devices: ext_oneapi_hip:gpu
3838
tests_selector: e2e
3939

40-
- name: NVIDIA/CUDA
41-
runner: '["Linux", "cuda"]'
42-
image: ghcr.io/intel/llvm/ubuntu2204_build:latest
43-
image_options: -u 1001 --gpus all --cap-add SYS_ADMIN
44-
target_devices: ext_oneapi_cuda:gpu
45-
tests_selector: e2e
46-
4740
- name: Intel L0 GPU
4841
runner: '["Linux", "gen12"]'
4942
image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
5043
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
5144
target_devices: level_zero:gpu
52-
reset_gpu: true
45+
reset_intel_gpu: true
5346
tests_selector: e2e
5447
extra_lit_opts: --param gpu-intel-gen12=True
5548

@@ -58,7 +51,7 @@ jobs:
5851
image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
5952
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
6053
target_devices: opencl:gpu
61-
reset_gpu: true
54+
reset_intel_gpu: true
6255
tests_selector: e2e
6356
extra_lit_opts: --param gpu-intel-gen12=True
6457

@@ -105,7 +98,7 @@ jobs:
10598
target_devices: ${{ matrix.target_devices }}
10699
tests_selector: ${{ matrix.tests_selector }}
107100
extra_lit_opts: ${{ matrix.extra_lit_opts }}
108-
reset_gpu: ${{ matrix.reset_gpu }}
101+
reset_intel_gpu: ${{ matrix.reset_intel_gpu }}
109102
ref: ${{ github.sha }}
110103
merge_ref: ''
111104
sycl_toolchain_artifact: sycl_linux_default
@@ -135,6 +128,39 @@ jobs:
135128
sycl_toolchain_archive: ${{ needs.build-win.outputs.artifact_archive_name }}
136129
extra_lit_opts: --param gpu-intel-gen12=True
137130

131+
cuda-aws-start:
132+
needs: [ubuntu2204_build]
133+
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
134+
uses: ./.github/workflows/sycl-aws.yml
135+
secrets: inherit
136+
with:
137+
mode: start
138+
139+
cuda-run-tests:
140+
needs: [ubuntu2204_build, cuda-aws-start]
141+
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
142+
uses: ./.github/workflows/sycl-linux-run-tests.yml
143+
with:
144+
name: CUDA E2E
145+
runner: '["aws_cuda-${{ github.run_id }}-${{ github.run_attempt }}"]'
146+
image: ghcr.io/intel/llvm/ubuntu2204_build:latest-0300ac924620a51f76c4929794637b82790f12ab
147+
image_options: -u 1001 --gpus all --cap-add SYS_ADMIN --env NVIDIA_DISABLE_REQUIRE=1
148+
target_devices: ext_oneapi_cuda:gpu
149+
ref: ${{ github.sha }}
150+
merge_ref: ''
151+
152+
sycl_toolchain_artifact: sycl_linux_default
153+
sycl_toolchain_archive: ${{ needs.ubuntu2204_build.outputs.artifact_archive_name }}
154+
sycl_toolchain_decompress_command: ${{ needs.ubuntu2204_build.outputs.artifact_decompress_command }}
155+
156+
cuda-aws-stop:
157+
needs: [cuda-aws-start, cuda-run-tests]
158+
if: always()
159+
uses: ./.github/workflows/sycl-aws.yml
160+
secrets: inherit
161+
with:
162+
mode: stop
163+
138164
nightly_build_upload:
139165
name: Nightly Build Upload
140166
if: ${{ github.ref_name == 'sycl' }}

0 commit comments

Comments
 (0)