Skip to content

Commit 351c5b9

Browse files
committed
Merge remote-tracking branch 'origin/sycl' into sycl-max-wg-size-kernel-props-conflicts
2 parents 51b1a69 + b9eb520 commit 351c5b9

File tree

70 files changed

+1118
-538
lines changed

Some content is hidden

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

70 files changed

+1118
-538
lines changed

.github/workflows/sycl-docs.yml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,21 @@ on:
1010
- '.github/workflows/sycl-docs.yml'
1111
- 'clang/docs/**'
1212
- 'sycl/doc/**'
13+
push:
14+
branches:
15+
- sycl
16+
paths:
17+
- '.github/workflows/sycl-docs.yml'
18+
- 'clang/docs/**'
19+
- 'sycl/doc/**'
1320

14-
permissions: read-all
21+
permissions:
22+
contents: read
23+
pages: write
24+
id-token: write
1525

1626
jobs:
1727
build:
18-
permissions:
19-
contents: write # for Git to git push
2028
runs-on: ubuntu-latest
2129
if: github.repository == 'intel/llvm'
2230
steps:
@@ -35,24 +43,18 @@ jobs:
3543
-s $GITHUB_WORKSPACE/repo -o $GITHUB_WORKSPACE/build -t Release --docs
3644
cmake --build . --target docs-sycl-html
3745
cmake --build . --target docs-clang-html
38-
- name: Deploy
39-
if: ${{ github.event_name == 'schedule' }}
40-
env:
41-
SSH_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}}
42-
run: |
43-
mkdir -p ~/.ssh
44-
echo "$SSH_KEY" > ~/.ssh/id_rsa
45-
chmod 600 ~/.ssh/id_rsa
46-
eval "$(ssh-agent -s)"
47-
ssh-add -k ~/.ssh/id_rsa
48-
git clone [email protected]:intel/llvm-docs.git docs
49-
cd $GITHUB_WORKSPACE/docs
50-
git rm -rf .
46+
# Copy the generated docs to a separate directory for uploading.
47+
mkdir $GITHUB_WORKSPACE/install_docs
48+
cd $GITHUB_WORKSPACE/install_docs
49+
mkdir clang
50+
mv $GITHUB_WORKSPACE/build/tools/sycl/doc/html/* .
51+
mv $GITHUB_WORKSPACE/build/tools/clang/docs/html/* clang/
5152
touch .nojekyll
52-
yes | \cp -rf $GITHUB_WORKSPACE/build/tools/sycl/doc/html/* .
53-
mv $GITHUB_WORKSPACE/build/tools/clang/docs/html clang/
54-
git config --global user.name "iclsrc"
55-
git config --global user.email "[email protected]"
56-
git add .
57-
git diff-index --quiet HEAD || git commit --amend -m "Update docs" -s
58-
git push -f
53+
# Upload the generated docs as an artifact and deploy to GitHub Pages.
54+
- name: Upload artifact
55+
uses: actions/upload-pages-artifact@v3
56+
with:
57+
path: ./install_docs
58+
- name: Deploy to GitHub Pages
59+
if: ${{ github.event_name == 'push' }}
60+
uses: actions/deploy-pages@v4

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,16 @@ jobs:
116116
extra_lit_opts: ${{ matrix.extra_lit_opts }}
117117
env: ${{ matrix.env || '{}' }}
118118

119-
install_igc_driver: ${{ contains(needs.detect_changes.outputs.filters, 'drivers') }}
120-
install_dev_igc_driver: ${{ matrix.use_igc_dev && contains(needs.detect_changes.outputs.filters, 'devigccfg') || 'false' }}
119+
# Do not install drivers on AMD and CUDA runners.
120+
install_igc_driver: |
121+
${{ !contains(matrix.target_devices, 'ext_oneapi_cuda') &&
122+
!contains(matrix.target_devices, 'ext_oneapi_hip') &&
123+
contains(needs.detect_changes.outputs.filters, 'drivers') }}
124+
install_dev_igc_driver: |
125+
${{ !contains(matrix.target_devices, 'ext_oneapi_cuda') &&
126+
!contains(matrix.target_devices, 'ext_oneapi_hip') &&
127+
matrix.use_igc_dev && contains(needs.detect_changes.outputs.filters, 'devigccfg') ||
128+
'false' }}
121129
# Run only if the PR does not have the 'ci-no-devigc' label.
122130
skip_run: ${{matrix.use_igc_dev && contains(github.event.pull_request.labels.*.name, 'ci-no-devigc') || 'false'}}
123131

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ source project. One of the examples is
4242
Features parity between this project and downstream projects is not guaranteed.
4343

4444
Project documentation is available at:
45-
[DPC++ Documentation](https://intel.github.io/llvm-docs/).
45+
[DPC++ Documentation](https://intel.github.io/llvm/).
4646

4747
### How to use DPC++
4848

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12433,6 +12433,12 @@ def err_sycl_kernel_incorrectly_named : Error<
1243312433
"'-fsycl-unnamed-lambda' to enable unnamed kernel lambdas"
1243412434
"}0">;
1243512435

12436+
// SYCL free function kernels extension.
12437+
def note_free_function_kernel_param_type_not_fwd_declarable : Note<
12438+
"%0 is not forward declarable">;
12439+
def note_free_function_kernel_param_type_not_supported : Note<
12440+
"%0 is not yet supported as a free function kernel parameter">;
12441+
1243612442
def err_sycl_kernel_not_function_object
1243712443
: Error<"kernel parameter must be a lambda or function object">;
1243812444
def err_sycl_restrict : Error<

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,22 +1815,18 @@ void SYCLToolChain::AddSYCLIncludeArgs(const clang::driver::Driver &Driver,
18151815
const ArgList &DriverArgs,
18161816
ArgStringList &CC1Args) {
18171817
// Add the SYCL header search locations in the specified order.
1818-
// ../include/sycl
18191818
// ../include/sycl/stl_wrappers
18201819
// ../include
18211820
SmallString<128> IncludePath(Driver.Dir);
18221821
llvm::sys::path::append(IncludePath, "..");
18231822
llvm::sys::path::append(IncludePath, "include");
1824-
SmallString<128> SYCLPath(IncludePath);
1825-
llvm::sys::path::append(SYCLPath, "sycl");
18261823
// This is used to provide our wrappers around STL headers that provide
18271824
// additional functions/template specializations when the user includes those
18281825
// STL headers in their programs (e.g., <complex>).
1829-
SmallString<128> STLWrappersPath(SYCLPath);
1826+
SmallString<128> STLWrappersPath(IncludePath);
1827+
llvm::sys::path::append(STLWrappersPath, "sycl");
18301828
llvm::sys::path::append(STLWrappersPath, "stl_wrappers");
18311829
CC1Args.push_back("-internal-isystem");
1832-
CC1Args.push_back(DriverArgs.MakeArgString(SYCLPath));
1833-
CC1Args.push_back("-internal-isystem");
18341830
CC1Args.push_back(DriverArgs.MakeArgString(STLWrappersPath));
18351831
CC1Args.push_back("-internal-isystem");
18361832
CC1Args.push_back(DriverArgs.MakeArgString(IncludePath));

0 commit comments

Comments
 (0)