forked from intel/llvm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/sycl' into sycl_prof_tool
* upstream/sycl: (2757 commits) [SYCL][Doc] Fixing incorrect merge of community Readme.md with our version (intel#5636) [SYCL] Change USM pooling parameters. (intel#5457) [CI] Fix cache location on Windows (intel#5603) [SYCL][NFC] Fix a warning about uninitialized struct members (intel#5610) [Buildbot] Update Windows GPU version to 101.1340 (intel#5620) Fix SPIRV -> OCL barrier call argument attributes Move SPV_INTEL_memory_access_aliasing tokens from spirv_internal [SYCL][ESIMD] Add support for named barrier APIs (intel#5583) [SYCL][L0] Remove ZeModule when program build failed (intel#5541) [SYCL] Silence "unknown attribute" warning for `device_indirectly_callable` (intel#5591) [SYCL][DOC] Introductory material for extensions (intel#5605) [SYCL][DOC] Change extension names to lower case (intel#5607) [SYCL] Improve get_kernel_bundle performance (intel#5496) [SYCL] Do not build device code for sub-devices (intel#5240) [sycl-post-link] Fix a crash during spec-constant properties generation (intel#5538) [SYCL][DOC] Move SPIR-V and OpenCL extensions (intel#5578) [SYCL][ESIMD][EMU] Update memory intrinsics for ESIMD_EMU plugin (intel#4748) [CI] Allow stale issue bot to analyze more issues (intel#5602) [SYCL][L0] Honor property::queue::enable_profiling (intel#5543) [OpenMP] Properly save strings when doing LTO ...
- Loading branch information
Showing
12,434 changed files
with
374,685 additions
and
212,856 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Labeling closed issues | ||
on: | ||
issues: | ||
types: ['closed'] | ||
|
||
jobs: | ||
automate-issues-labels: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'llvm/llvm-project' | ||
steps: | ||
- uses: andymckay/labeler@1.0.4 | ||
with: | ||
remove-labels: "awaiting-review" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# This contains the workflow definitions that allow users to test backports | ||
# to the release branch using comments on issues. | ||
# | ||
# /cherry-pick <commit> <...> | ||
# | ||
# This comment will attempt to cherry-pick the given commits to the latest | ||
# release branch (release/Y.x) and if successful push the result to a branch | ||
# on github. | ||
# | ||
# /branch <owner>/<repo>/<branch> | ||
# | ||
# This comment will create a pull request from <branch> to the latest release | ||
# branch. | ||
|
||
name: Issue Release Workflow | ||
|
||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
- edited | ||
|
||
env: | ||
COMMENT_BODY: ${{ github.event.comment.body }} | ||
|
||
jobs: | ||
backport-commits: | ||
name: Backport Commits | ||
runs-on: ubuntu-20.04 | ||
if: >- | ||
(github.repository == 'llvm/llvm-project') && | ||
!startswith(github.event.comment.body, '<!--IGNORE-->') && | ||
contains(github.event.comment.body, '/cherry-pick') | ||
steps: | ||
- name: Fetch LLVM sources | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: llvm/llvm-project | ||
# GitHub stores the token used for checkout and uses it for pushes | ||
# too, but we want to use a different token for pushing, so we need | ||
# to disable persist-credentials here. | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Setup Environment | ||
run: | | ||
pip install -r ./llvm/utils/git/requirements.txt | ||
./llvm/utils/git/github-automation.py --token ${{ github.token }} setup-llvmbot-git | ||
- name: Backport Commits | ||
run: | | ||
printf "$COMMENT_BODY" | | ||
./llvm/utils/git/github-automation.py \ | ||
--repo $GITHUB_REPOSITORY \ | ||
--token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \ | ||
release-workflow \ | ||
--issue-number ${{ github.event.issue.number }} \ | ||
auto | ||
create-pull-request: | ||
name: Create Pull Request | ||
runs-on: ubuntu-20.04 | ||
if: >- | ||
(github.repository == 'llvm/llvm-project') && | ||
!startswith(github.event.comment.body, '<!--IGNORE-->') && | ||
contains(github.event.comment.body, '/branch') | ||
steps: | ||
- name: Fetch LLVM sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Environment | ||
run: | | ||
pip install -r ./llvm/utils/git/requirements.txt | ||
- name: Create Pull Request | ||
run: | | ||
printf "$COMMENT_BODY" | | ||
./llvm/utils/git/github-automation.py \ | ||
--repo $GITHUB_REPOSITORY \ | ||
--token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \ | ||
release-workflow \ | ||
--issue-number ${{ github.event.issue.number }} \ | ||
auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Stale Issues | ||
|
||
on: | ||
schedule: | ||
- cron: '30 1 * * *' | ||
|
||
jobs: | ||
close-issues: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v4 | ||
with: | ||
stale-issue-message: 'This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be automatically closed in 30 days.' | ||
close-issue-message: 'This issue was closed because it has been stalled for 30 days with no activity. Please, re-open if the issue still exists.' | ||
days-before-stale: 180 | ||
days-before-close: 30 | ||
exempt-issue-labels: 'confirmed,hip,cuda,enhancement,help wanted,upstream' | ||
stale-issue-label: 'stale' | ||
exempt-all-issue-assignees: true | ||
operations-per-run: 200 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: SYCL Windows Test | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: src | ||
fetch-depth: 1 | ||
- name: Install dependencies | ||
shell: cmd | ||
run: | | ||
choco install -y cuda --version 11.6.0.51123 | ||
choco install -y ninja | ||
choco install -y sccache --version 0.2.15 | ||
refreshenv | ||
echo CUDA_PATH=%CUDA_PATH% | ||
echo CUDA_PATH=%CUDA_PATH% >> %GITHUB_ENV% | ||
- uses: ilammy/msvc-dev-cmd@9f8ae839b01883414208f29e3e24524387f48e1f | ||
with: | ||
arch: amd64 | ||
- name: Setup Cache | ||
uses: actions/cache@v2 | ||
if: ${{ github.event_name != 'pull_request' }} | ||
id: cache | ||
with: | ||
path: cache | ||
key: sycl-win-build-${{ github.sha }} | ||
restore-keys: | | ||
sycl-win-build- | ||
- name: Build | ||
shell: cmd | ||
env: | ||
CUDA_PATH: 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6' | ||
CUDA_TOOLKIT_ROOT_DIR: 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6' | ||
# TODO switch to clang-cl and lld when this is fixed https://github.com/oneapi-src/level-zero/issues/83 | ||
# TODO enable sccache, when problems with PDB are resolved | ||
run: | | ||
mkdir build | ||
mkdir install | ||
IF NOT EXIST cache MKDIR cache | ||
set SCCACHE_DIR=%GITHUB_WORKSPACE%\cache | ||
set PATH=C:\ProgramData\chocolatey\lib\sccache\tools\sccache-v0.2.15-x86_64-pc-windows-msvc;%PATH% | ||
python.exe src/buildbot/configure.py -o build ^ | ||
--cmake-opt="-DCMAKE_C_COMPILER=cl" ^ | ||
--cmake-opt="-DCMAKE_CXX_COMPILER=cl" ^ | ||
--cmake-opt="-DCMAKE_INSTALL_PREFIX=%GITHUB_WORKSPACE%\install" ^ | ||
--cmake-opt="-DCMAKE_CXX_COMPILER_LAUNCHER=sccache" ^ | ||
--cmake-opt="-DCMAKE_C_COMPILER_LAUNCHER=sccache" ^ | ||
--cuda | ||
cmake --build build --target sycl-toolchain | ||
sccache --show-stats | ||
- name: Install | ||
shell: cmd | ||
run: cmake --build build --target deploy-sycl-toolchain | ||
- name: Upload toolchain | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: sycl_windows_default | ||
path: install/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.