Skip to content

Commit 958cd99

Browse files
author
iclsrc
committed
Merge from 'sycl' to 'sycl-web'
2 parents 50aea7d + 3285e0f commit 958cd99

File tree

64 files changed

+3659
-384
lines changed

Some content is hidden

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

64 files changed

+3659
-384
lines changed

.github/CODEOWNERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,12 @@ sycl/test-e2e/KernelFusion @victor-eds @Naghasan @sommerlukas
105105

106106
# Matrix tests
107107
sycl/test-e2e/Matrix @dkhaldi @YuriPlyakhin @yubingex007-a11y
108+
109+
# Native CPU
110+
llvm/**/*SYCLNativeCPU* @intel/dpcpp-nativecpu-pi-reviewers
111+
clang/include/clang/Basic/SYCLNativeCPUHelpers.h @intel/dpcpp-nativecpu-pi-reviewers
112+
clang/test/CodeGenSYCL/native_cpu*.cpp @intel/dpcpp-nativecpu-pi-reviewers
113+
clang/test/Driver/sycl-native-cpu*.cpp @intel/dpcpp-nativecpu-pi-reviewers
114+
sycl/**/native_cpu/ @intel/dpcpp-nativecpu-pi-reviewers
115+
sycl/doc/design/SYCLNativeCPU.md @intel/dpcpp-nativecpu-pi-reviewers
116+
sycl/include/sycl/detail/native_cpu.hpp @intel/dpcpp-nativecpu-pi-reviewers

.github/workflows/linux_matrix_e2e_on_nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424
image: ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:build
2525
extra_cmake_args: -DHIP_PLATFORM="AMD" -DAMD_ARCH="gfx1031"
2626
extra_image_opts: --device=/dev/kfd
27-
target_devices: all
27+
target_devices: ext_oneapi_hip:gpu
2828
reset_gpu: false
2929

3030
- name: Intel
3131
runner: '["Linux", "gen9"]'
3232
image: ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:latest
3333
extra_cmake_args:
3434
extra_image_opts: -u 1001
35-
target_devices: all
35+
target_devices: ext_oneapi_level_zero:gpu;opencl:gpu;opencl:cpu
3636
reset_gpu: true
3737

3838
- name: ESIMD Emu

.github/workflows/sycl_nightly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
jobs:
1313
test_matrix:
14+
if: github.repository == 'intel/llvm'
1415
name: Generate Test Matrix
1516
uses: ./.github/workflows/sycl_gen_test_matrix.yml
1617
with:

.github/workflows/sycl_windows_build_and_test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
name: Build + LIT
3030
runs-on: [Windows, build]
3131
# TODO use cached checkout
32+
outputs:
33+
build_conclusion: ${{ steps.build.conclusion }}
3234
steps:
3335
- uses: ilammy/msvc-dev-cmd@7315a94840631165970262a99c72cfb48a65d25d
3436
with:
@@ -92,6 +94,7 @@ jobs:
9294
run: |
9395
cmake --build build --target check-libdevice
9496
- name: Install
97+
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
9598
shell: bash
9699
# TODO replace utility installation with a single CMake target
97100
run: |
@@ -106,18 +109,21 @@ jobs:
106109
cmake --build build --target install-llvm-profdata
107110
cmake --build build --target install-compiler-rt
108111
- name: Pack toolchain
112+
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
109113
shell: bash
110114
run: |
111115
tar -czf llvm_sycl.tar.gz -C install .
112116
- name: Upload toolchain
117+
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
113118
uses: actions/upload-artifact@v3
114119
with:
115120
name: sycl_windows_default
116121
path: llvm_sycl.tar.gz
117122

118123
e2e-tests:
119124
needs: build
120-
if: ${{ inputs.lts_matrix != '[]' }}
125+
# Continue if build was successful.
126+
if: ${{ always() && needs.build.outputs.build_conclusion == 'success' && inputs.lts_matrix != '[]' }}
121127
strategy:
122128
fail-fast: false
123129
matrix:

clang/include/clang/Driver/Options.td

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3209,6 +3209,11 @@ def fsycl_max_parallel_jobs_EQ : Joined<["-"], "fsycl-max-parallel-link-jobs=">,
32093209
def ftarget_compile_fast : Flag<["-"], "ftarget-compile-fast">,
32103210
Flags<[CoreOption]>, HelpText<"Experimental feature: Reduce target "
32113211
"compilation time, with potential runtime performance trade-off.">;
3212+
def ftarget_export_symbols : Flag<["-"], "ftarget-export-symbols">,
3213+
Flags<[CoreOption]>, HelpText<"Expose exported symbols in a generated "
3214+
"target library to allow for visibilty to other modules.">;
3215+
def fno_target_export_symbols : Flag<["-"], "fno-target-export-symbols">,
3216+
Flags<[CoreOption]>;
32123217
def : Flag<["-"], "fsycl-rdc">, Flags<[CoreOption]>, Alias<fgpu_rdc>;
32133218
def : Flag<["-"], "fno-sycl-rdc">, Flags<[CoreOption]>, Alias<fno_gpu_rdc>;
32143219
def fsycl_optimize_non_user_code : Flag<["-"], "fsycl-optimize-non-user-code">,

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,9 +991,12 @@ void SYCLToolChain::AddImpliedTargetArgs(const llvm::Triple &Triple,
991991
CmdArgs.push_back(Args.MakeArgString(DepInfo));
992992
}
993993
// -ftarget-compile-fast AOT
994-
if (Args.hasArg(options::OPT_ftarget_compile_fast)) {
994+
if (Args.hasArg(options::OPT_ftarget_compile_fast))
995995
BeArgs.push_back("-igc_opts 'PartitionUnit=1,SubroutineThreshold=50000'");
996-
}
996+
// -ftarget-export-symbols
997+
if (Args.hasFlag(options::OPT_ftarget_export_symbols,
998+
options::OPT_fno_target_export_symbols, false))
999+
BeArgs.push_back("-library-compilation");
9971000
} else if (Triple.getSubArch() == llvm::Triple::NoSubArch &&
9981001
Triple.isSPIR()) {
9991002
// -ftarget-compile-fast JIT
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Test -ftarget-export-symbols behavior
2+
3+
// RUN: %clang -### -target x86_64-unknown-linux-gnu -fsycl \
4+
// RUN: -fsycl-targets=spir64_gen -ftarget-export-symbols %s 2>&1 \
5+
// RUN: | FileCheck -check-prefix=TARGET_EXPORT %s
6+
// RUN: %clang_cl -### --target=x86_64-pc-windows-msvc -fsycl \
7+
// RUN: -fsycl-targets=spir64_gen -ftarget-export-symbols %s 2>&1 \
8+
// RUN: | FileCheck -check-prefix=TARGET_EXPORT %s
9+
// RUN: %clang -### -target x86_64-unknown-linux-gnu -fsycl \
10+
// RUN: -fsycl-targets=spir64_gen -ftarget-export-symbols \
11+
// RUN: -fno-target-export-symbols %s 2>&1 \
12+
// RUN: | FileCheck -check-prefix=NO_TARGET_EXPORT %s
13+
14+
// TARGET_EXPORT: ocloc{{.*}} "-output"
15+
// TARGET_EXPORT: "-options" "-library-compilation"
16+
// NO_TARGET_EXPORT-NOT: "-library-compilation"
17+
18+
// 'unused' for non-spir64_gen targets
19+
// RUN: %clang -### -target x86_64-unknown-linux-gnu -fsycl \
20+
// RUN: -fsycl-targets=spir64 -ftarget-export-symbols %s 2>&1 \
21+
// RUN: | FileCheck -check-prefix=UNUSED %s
22+
// RUN: %clang -### -target x86_64-unknown-linux-gnu -fsycl \
23+
// RUN: -fsycl-targets=spir64_x86_64 -ftarget-export-symbols %s 2>&1 \
24+
// RUN: | FileCheck -check-prefix=UNUSED %s
25+
// RUN: %clang -### -target x86_64-unknown-linux-gnu -fsycl \
26+
// RUN: -fsycl-targets=spir64_fpga -ftarget-export-symbols %s 2>&1 \
27+
// RUN: | FileCheck -check-prefix=UNUSED %s
28+
29+
// UNUSED: argument unused during compilation: '-ftarget-export-symbols'

devops/dependencies.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"linux": {
33
"compute_runtime": {
4-
"github_tag": "23.09.25812.14",
5-
"version": "23.09.25812.14",
6-
"url": "https://github.com/intel/compute-runtime/releases/tag/23.09.25812.14",
4+
"github_tag": "23.13.26032.30",
5+
"version": "23.13.26032.30",
6+
"url": "https://github.com/intel/compute-runtime/releases/tag/23.13.26032.30",
77
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
88
},
99
"igc": {
10-
"github_tag": "igc-1.0.13463.18",
11-
"version": "1.0.13463.18",
12-
"url": "https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.13463.18",
10+
"github_tag": "igc-1.0.13700.14",
11+
"version": "1.0.13700.14",
12+
"url": "https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.13700.14",
1313
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
1414
},
1515
"cm": {
@@ -74,4 +74,4 @@
7474
"root": "{ARCHIVE_ROOT}/comp/oclfpga/win"
7575
}
7676
}
77-
}
77+
}

0 commit comments

Comments
 (0)