Skip to content

Commit d7ec3ca

Browse files
Merge branch 'sycl' of https://github.com/intel/llvm into esimd_emu_memory_intrinsic
2 parents d4edc16 + d4412d7 commit d7ec3ca

File tree

12,587 files changed

+442754
-314244
lines changed

Some content is hidden

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

12,587 files changed

+442754
-314244
lines changed

.clang-tidy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ CheckOptions:
66
value: CamelCase
77
- key: readability-identifier-naming.FunctionCase
88
value: camelBack
9+
# Exclude from scanning as this is an exported symbol used for fuzzing
10+
# throughout the code base.
11+
- key: readability-identifier-naming.FunctionIgnoredRegexp
12+
value: "LLVMFuzzerTestOneInput"
913
- key: readability-identifier-naming.MemberCase
1014
value: CamelCase
1115
- key: readability-identifier-naming.ParameterCase
@@ -18,3 +22,5 @@ CheckOptions:
1822
value: 1
1923
- key: readability-redundant-member-init.IgnoreBaseInCopyConstructors
2024
value: 1
25+
- key: modernize-use-default-member-init.UseAssignment
26+
value: 1

.github/workflows/closed-issues.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Labeling closed issues
2+
on:
3+
issues:
4+
types: ['closed']
5+
6+
jobs:
7+
automate-issues-labels:
8+
runs-on: ubuntu-latest
9+
if: github.repository == 'llvm/llvm-project'
10+
steps:
11+
- uses: andymckay/[email protected]
12+
with:
13+
remove-labels: "awaiting-review"
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# This contains the workflow definitions that allow users to test backports
2+
# to the release branch using comments on issues.
3+
#
4+
# /cherry-pick <commit> <...>
5+
#
6+
# This comment will attempt to cherry-pick the given commits to the latest
7+
# release branch (release/Y.x) and if successful push the result to a branch
8+
# on github.
9+
#
10+
# /branch <owner>/<repo>/<branch>
11+
#
12+
# This comment will create a pull request from <branch> to the latest release
13+
# branch.
14+
15+
name: Issue Release Workflow
16+
17+
on:
18+
issue_comment:
19+
types:
20+
- created
21+
- edited
22+
23+
env:
24+
COMMENT_BODY: ${{ github.event.comment.body }}
25+
26+
jobs:
27+
backport-commits:
28+
name: Backport Commits
29+
runs-on: ubuntu-20.04
30+
if: >-
31+
(github.repository == 'llvm/llvm-project') &&
32+
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
33+
contains(github.event.comment.body, '/cherry-pick')
34+
steps:
35+
- name: Fetch LLVM sources
36+
uses: actions/checkout@v2
37+
with:
38+
repository: llvm/llvm-project
39+
# GitHub stores the token used for checkout and uses it for pushes
40+
# too, but we want to use a different token for pushing, so we need
41+
# to disable persist-credentials here.
42+
persist-credentials: false
43+
fetch-depth: 0
44+
45+
- name: Setup Environment
46+
run: |
47+
pip install -r ./llvm/utils/git/requirements.txt
48+
./llvm/utils/git/github-automation.py --token ${{ github.token }} setup-llvmbot-git
49+
50+
- name: Backport Commits
51+
run: |
52+
printf "$COMMENT_BODY" |
53+
./llvm/utils/git/github-automation.py \
54+
--repo $GITHUB_REPOSITORY \
55+
--token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
56+
release-workflow \
57+
--issue-number ${{ github.event.issue.number }} \
58+
auto
59+
60+
create-pull-request:
61+
name: Create Pull Request
62+
runs-on: ubuntu-20.04
63+
if: >-
64+
(github.repository == 'llvm/llvm-project') &&
65+
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
66+
contains(github.event.comment.body, '/branch')
67+
68+
steps:
69+
- name: Fetch LLVM sources
70+
uses: actions/checkout@v2
71+
72+
- name: Setup Environment
73+
run: |
74+
pip install -r ./llvm/utils/git/requirements.txt
75+
76+
- name: Create Pull Request
77+
run: |
78+
printf "$COMMENT_BODY" |
79+
./llvm/utils/git/github-automation.py \
80+
--repo $GITHUB_REPOSITORY \
81+
--token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \
82+
release-workflow \
83+
--issue-number ${{ github.event.issue.number }} \
84+
auto

.github/workflows/issue-subscriber.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ jobs:
1313
- name: Setup Automation Script
1414
run: |
1515
curl -O -L https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$GITHUB_SHA/llvm/utils/git/github-automation.py
16+
curl -O -L https://raw.githubusercontent.com/$GITHUB_REPOSITORY/$GITHUB_SHA/llvm/utils/git/requirements.txt
1617
chmod a+x github-automation.py
17-
pip install PyGithub
18+
pip install -r requirements.txt
1819
1920
- name: Update watchers
2021
run: |

.github/workflows/sycl_containers.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ on:
99
- sycl
1010
paths:
1111
- 'devops/containers/**'
12+
- 'devops/dependencies.json'
13+
- '.github/workflows/sycl_containers.yaml'
1214
pull_request:
1315
paths:
1416
- 'devops/containers/**'
17+
- 'devops/dependencies.json'
18+
- '.github/workflows/sycl_containers.yaml'
1519

1620
jobs:
1721
base_image_ubuntu2004:
@@ -52,6 +56,7 @@ jobs:
5256
tags: |
5357
ghcr.io/${{ github.repository }}/ubuntu2004_build:${{ github.sha }}
5458
ghcr.io/${{ github.repository }}/ubuntu2004_build:latest
59+
5560
# This job produces a Docker container with the latest versions of Intel
5661
# drivers, that can be found on GitHub.
5762
drivers_image_ubuntu2004:
@@ -64,6 +69,15 @@ jobs:
6469
uses: actions/checkout@v2
6570
with:
6671
fetch-depth: 2
72+
- name: Get dependencies configuration
73+
id: deps
74+
run: |
75+
DEPS=`cat devops/dependencies.json`
76+
DEPS="${DEPS//'%'/'%25'}"
77+
DEPS="${DEPS//$'\n'/'%0A'}"
78+
DEPS="${DEPS//$'\r'/'%0D'}"
79+
echo $DEPS
80+
echo "::set-output name=deps::$DEPS"
6781
- name: Build and Push Container
6882
uses: ./devops/actions/build_container
6983
with:
@@ -74,4 +88,48 @@ jobs:
7488
tags: |
7589
ghcr.io/${{ github.repository }}/ubuntu2004_intel_drivers:latest-${{ github.sha }}
7690
ghcr.io/${{ github.repository }}/ubuntu2004_intel_drivers:latest
91+
build-args: |
92+
compute_runtime_tag=${{fromJson(steps.deps.outputs.deps).linux.compute_runtime.github_tag}}
93+
igc_tag=${{fromJson(steps.deps.outputs.deps).linux.igc.github_tag}}
94+
tbb_tag=${{fromJson(steps.deps.outputs.deps).linux.tbb.github_tag}}
95+
fpgaemu_tag=${{fromJson(steps.deps.outputs.deps).linux.fpgaemu.github_tag}}
96+
cpu_tag=${{fromJson(steps.deps.outputs.deps).linux.oclcpu.github_tag}}
97+
98+
# This job produces a Docker container with the latest versions of Intel
99+
# drivers, that can be found on GitHub.
100+
drivers_image_ubuntu2004_unstable:
101+
if: github.repository == 'intel/llvm'
102+
name: Intel Drivers (unstable) Ubuntu 20.04 Docker image
103+
runs-on: ubuntu-latest
104+
needs: base_image_ubuntu2004
105+
steps:
106+
- name: Checkout
107+
uses: actions/checkout@v2
108+
with:
109+
fetch-depth: 2
110+
- name: Get dependencies configuration
111+
id: deps
112+
run: |
113+
DEPS=`cat devops/dependencies.json`
114+
DEPS="${DEPS//'%'/'%25'}"
115+
DEPS="${DEPS//$'\n'/'%0A'}"
116+
DEPS="${DEPS//$'\r'/'%0D'}"
117+
echo $DEPS
118+
echo "::set-output name=deps::$DEPS"
119+
- name: Build and Push Container
120+
uses: ./devops/actions/build_container
121+
with:
122+
push: ${{ github.event_name != 'pull_request' }}
123+
file: ubuntu2004_intel_drivers
124+
username: ${{ github.repository_owner }}
125+
password: ${{ secrets.GITHUB_TOKEN }}
126+
tags: |
127+
ghcr.io/${{ github.repository }}/ubuntu2004_intel_drivers:unstable-${{ github.sha }}
128+
ghcr.io/${{ github.repository }}/ubuntu2004_intel_drivers:unstable
129+
build-args: |
130+
compute_runtime_tag=${{fromJson(steps.deps.outputs.deps).linux_staging.compute_runtime.github_tag}}
131+
igc_tag=${{fromJson(steps.deps.outputs.deps).linux_staging.igc.github_tag}}
132+
tbb_tag=${{fromJson(steps.deps.outputs.deps).linux_staging.tbb.github_tag}}
133+
fpgaemu_tag=${{fromJson(steps.deps.outputs.deps).linux_staging.fpgaemu.github_tag}}
134+
cpu_tag=${{fromJson(steps.deps.outputs.deps).linux_staging.oclcpu.github_tag}}
77135

.github/workflows/sycl_linux_build_and_test.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ on:
4040
build_configure_extra_args:
4141
type: string
4242
required: false
43-
default: "--hip --hip-amd-arch=gfx906 --cuda"
43+
default: "--hip --cuda"
4444
build_artifact_suffix:
4545
type: string
4646
required: true
@@ -86,7 +86,7 @@ jobs:
8686
\"build_cache_root\":\"/__w/\",
8787
\"build_cache_suffix\":\"default\",
8888
\"build_cache_size\":\"2G\",
89-
\"build_configure_extra_args\":\"--hip --hip-amd-arch=gfx906 --cuda\",
89+
\"build_configure_extra_args\":\"--hip --cuda\",
9090
\"build_artifact_suffix\":\"default\",
9191
\"build_upload_artifact\":\"false\",
9292
\"intel_drivers_image\":\"ghcr.io/intel/llvm/ubuntu2004_intel_drivers:latest\",
@@ -150,33 +150,34 @@ jobs:
150150
--cmake-opt="-DLLVM_INSTALL_UTILS=ON" \
151151
--cmake-opt="-DSYCL_PI_TESTS=OFF"
152152
- name: Compile
153+
id: build
153154
run: cmake --build $GITHUB_WORKSPACE/build
154155
# TODO allow to optionally disable in-tree checks
155156
- name: check-llvm
156-
if: always()
157+
if: ${{ always() && !cancelled() && steps.build.outcome == 'success' }}
157158
run: |
158159
cmake --build $GITHUB_WORKSPACE/build --target check-llvm
159160
- name: check-clang
160-
if: always()
161+
if: ${{ always() && !cancelled() && steps.build.outcome == 'success' }}
161162
run: |
162163
export XDG_CACHE_HOME=$GITHUB_WORKSPACE/os_cache
163164
cmake --build $GITHUB_WORKSPACE/build --target check-clang
164165
- name: check-sycl
165-
if: always()
166+
if: ${{ always() && !cancelled() && steps.build.outcome == 'success' }}
166167
run: |
167168
# TODO consider moving this to Dockerfile
168169
export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
169170
cmake --build $GITHUB_WORKSPACE/build --target check-sycl
170171
- name: check-llvm-spirv
171-
if: always()
172+
if: ${{ always() && !cancelled() && steps.build.outcome == 'success' }}
172173
run: |
173174
cmake --build $GITHUB_WORKSPACE/build --target check-llvm-spirv
174175
- name: check-xptifw
175-
if: always()
176+
if: ${{ always() && !cancelled() && steps.build.outcome == 'success' }}
176177
run: |
177178
cmake --build $GITHUB_WORKSPACE/build --target check-xptifw
178179
- name: check-libclc
179-
if: always()
180+
if: ${{ always() && !cancelled() && steps.build.outcome == 'success' }}
180181
run: |
181182
cmake --build $GITHUB_WORKSPACE/build --target check-libclc
182183
- name: Install
@@ -191,6 +192,9 @@ jobs:
191192
cmake --build $GITHUB_WORKSPACE/build --target install-clang-format
192193
cmake --build $GITHUB_WORKSPACE/build --target install-clang-tidy
193194
cmake --build $GITHUB_WORKSPACE/build --target install-llvm-size
195+
cmake --build $GITHUB_WORKSPACE/build --target install-llvm-cov
196+
cmake --build $GITHUB_WORKSPACE/build --target install-llvm-profdata
197+
cmake --build $GITHUB_WORKSPACE/build --target install-compiler-rt
194198
# TODO this should be resolved in CMakeLists.txt
195199
cmake --build $GITHUB_WORKSPACE/build --target install-lld || echo "skipped"
196200

.github/workflows/sycl_nightly.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
build_github_cache: true
1919
build_cache_root: "/__w/"
2020
build_artifact_suffix: default
21+
lts_config: "ocl_gen9;ocl_x64;hip_amdgpu"
22+
23+
windows_default:
24+
name: Windows (experimental)
25+
if: github.repository == 'intel/llvm'
26+
uses: ./.github/workflows/sycl_windows_build_and_test.yml
27+
2128
ubuntu2004_docker_build_push:
2229
if: github.repository == 'intel/llvm'
2330
runs-on: ubuntu-latest
@@ -54,4 +61,14 @@ jobs:
5461
tags: |
5562
ghcr.io/${{ github.repository }}/sycl_ubuntu2004_nightly:no-drivers-${{ github.sha }}
5663
ghcr.io/${{ github.repository }}/sycl_ubuntu2004_nightly:no-drivers
57-
64+
ubuntu2004_build_test_new_pm:
65+
# Default Linux building and LIT testing using new Pass Manager by default
66+
if: github.repository == 'intel/llvm'
67+
uses: intel/llvm/.github/workflows/sycl_linux_build_and_test.yml@sycl
68+
with:
69+
build_runs_on: build
70+
build_cache_root: "/__w/"
71+
build_cache_suffix: new_pm
72+
build_artifact_suffix: new_pm
73+
build_configure_extra_args: '--hip --hip-amd-arch=gfx906 --cuda --cmake-opt=-DLLVM_ENABLE_NEW_PASS_MANAGER=ON'
74+
lts_config: "hip_amdgpu;ocl_x64"

.github/workflows/sycl_precommit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
build_cache_size: "8G"
3131
build_artifact_suffix: "default"
3232
build_cache_suffix: "default"
33-
lts_config: "hip_amdgpu;ocl_x64"
33+
lts_config: "hip_amdgpu;ocl_x64;ocl_gen9;l0_gen9"
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Stale Issues
2+
3+
on:
4+
schedule:
5+
- cron: '30 1 * * *'
6+
7+
jobs:
8+
close-issues:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/stale@v4
12+
with:
13+
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.'
14+
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.'
15+
days-before-stale: 180
16+
days-before-close: 30
17+
exempt-issue-labels: 'confirmed,hip,cuda,enhancement,help wanted,upstream'
18+
stale-issue-label: 'stale'
19+
exempt-all-issue-assignees: true

0 commit comments

Comments
 (0)