forked from intel/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refactor_existing_workflows' of github.com:alexbatashev…
…/llvm into refactor_existing_workflows * 'refactor_existing_workflows' of github.com:alexbatashev/llvm: (2051 commits) [SYCL][L0] Honor property::queue::enable_profiling (intel#5543) [SYCL][CI] Enable sccache on Windows (intel#5589) [SYCL][Doc] Move internal design docs (intel#5556) [sycl-post-link] Initialize the integer Value variable (intel#5585) [CI] Fix nightly builds (intel#5584) [SYCL][L0] Fix use of copy-engines in L0 interop queue (intel#5579) Update OpenCL headers tag to dcd5bed (intel#5575) [SYCL] Fix warning for InOrderQueueSyncCheck unit test build (intel#5577) [SYCL][HIP] Remove arch requirement for running lit tests (intel#5253) [SYCL][L0] Fix timestamp calculation (in ns) (intel#5555) [SYCL] Fix sync of host task vs kernel for in-order queue (intel#5551) [sycl-post-link] Add a check for device globals with device_image_scope (intel#5517) [SYCL] Fix SYCL Kernel Body Check (intel#5546) [SYCL] Add support for SYCL 2020 in class group (intel#5447) Fix tests after 1c729d7 Use align attribute for kernel pointer arg alignment Fix tests after 18834dc Mark pointer-typed kernel arguments as ABI aligned [CI] Add experimental Windows build to GitHub Actions nightly (intel#5560) [sycl-post-link][NFC] Address clang-tidy concerns in the sycl-post-link (intel#5552) Fix lit test after changes in Clang Improve backward compatibility for DISubRange ...
- Loading branch information
Showing
9,424 changed files
with
252,348 additions
and
142,847 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,19 @@ | ||
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 |
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,70 @@ | ||
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: Configure | ||
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 | ||
- 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' | ||
run: | | ||
cmake --build build --target sycl-toolchain | ||
- 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
Oops, something went wrong.