Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
e1eb1d6
Revert "[Clang] Normalize constraints before checking for satisfactio…
ronlieb Oct 4, 2025
7b4738d
Update revert_patches.txt Normalize constraints
ronlieb Oct 4, 2025
eb515a2
Amd/dev/rlieberm/relandol is valid (#4359)
ronlieb Oct 5, 2025
54a23bc
merge main into amd-staging
z1-cciauto Oct 5, 2025
cb6f7d1
merge main into amd-staging (#4362)
z1-cciauto Oct 5, 2025
e851864
Amd/dev/rlieberm/revert normalize afar (#4361)
ronlieb Oct 5, 2025
d74508f
[Clang] Normalize constraints before checking for satisfaction (#161671)
cor3ntin Oct 3, 2025
27655c9
update revert_patches.txt to remove Normalize
ronlieb Oct 5, 2025
ddbc687
merge main into amd-staging
ronlieb Oct 5, 2025
310a680
merge main into amd-staging (#4364)
z1-cciauto Oct 5, 2025
40a74d7
merge main into amd-staging
z1-cciauto Oct 5, 2025
564c6ad
merge main into amd-staging (#4365)
z1-cciauto Oct 5, 2025
5cefd4c
merge main into amd-staging
z1-cciauto Oct 6, 2025
ac24142
merge main into amd-staging (#4366)
z1-cciauto Oct 6, 2025
49b7a66
merge main into amd-staging
z1-cciauto Oct 6, 2025
4d4098e
merge main into amd-staging (#4367)
z1-cciauto Oct 6, 2025
8aae8af
merge main into amd-staging
z1-cciauto Oct 6, 2025
713672d
merge main into amd-staging (#4372)
z1-cciauto Oct 6, 2025
51ec013
merge main into amd-staging
ronlieb Oct 6, 2025
6ec6768
[OpenMP] Fixes openmp-runtimelib test
nicebert Oct 6, 2025
ea09548
merge main into amd-staging (#4376)
z1-cciauto Oct 6, 2025
994edf7
merge main into amd-staging
z1-cciauto Oct 6, 2025
baf44d7
[Comgr] Fix warnings caused by upstream API changes
lamb-j Oct 6, 2025
75216c0
merge main into amd-staging (#4386)
z1-cciauto Oct 6, 2025
53f3b55
merge main into amd-staging
ronlieb Oct 6, 2025
47e5963
merge main into amd-staging (#4393)
z1-cciauto Oct 7, 2025
92d4a61
merge main into amd-staging
z1-cciauto Oct 7, 2025
b91cda6
merge main into amd-staging (#4397)
z1-cciauto Oct 7, 2025
55db283
merge main into amd-staging
z1-cciauto Oct 7, 2025
4495823
merge main into amd-staging (#4401)
z1-cciauto Oct 7, 2025
dd976d6
merge main into amd-staging
ronlieb Oct 7, 2025
cd4a307
[OpenMP] Fixes flang specific libdir rpath test
nicebert Oct 7, 2025
a771dc8
merge main into amd-staging (#4402)
z1-cciauto Oct 7, 2025
2f8df0e
merge main into amd-staging
z1-cciauto Oct 7, 2025
9240f3a
merge main into amd-staging (#4405)
z1-cciauto Oct 7, 2025
5edfc85
merge main into amd-staging
ronlieb Oct 7, 2025
3b4231b
Reapply "[NFC][LLVM] Use ListSeparator in AsmWriter (#161422)"
jurahul Sep 30, 2025
59f4280
merge main into amd-staging (#4408)
z1-cciauto Oct 7, 2025
ee67ae5
Reapply "[NFC][LLVM] Use ListSeparator in AsmWriter (#161422)" (#4409)
ronlieb Oct 7, 2025
f27db42
merge main into amd-staging
ronlieb Oct 8, 2025
23698f0
[NFC][LLVM] Misc code cleanup in AsmWriter.cpp (#161522)
jurahul Oct 1, 2025
108d9b8
merge main into amd-staging (#4411)
z1-cciauto Oct 8, 2025
6ad8e66
merge main into amd-staging
ronlieb Oct 8, 2025
38071df
merge main into amd-staging (#4413)
z1-cciauto Oct 8, 2025
0c1bd33
merge main into amd-staging
z1-cciauto Oct 8, 2025
edb4908
merge main into amd-staging (#4414)
z1-cciauto Oct 8, 2025
9dd7a3a
[NFC][LLVM] Misc code cleanup in AsmWriter.cpp (#161522) (#4412)
ronlieb Oct 8, 2025
8165719
Cleanup revert_patches.txt
ronlieb Oct 8, 2025
a3d421c
merge main into amd-staging
z1-cciauto Oct 8, 2025
eb6be17
Cleanup revert_patches.txt (#4417)
ronlieb Oct 8, 2025
2f32bc5
[OpenMP] Removes relative runpath deemed unsafe (#4235)
CatherineMoore Oct 8, 2025
7752b22
merge main into amd-staging (#4418)
z1-cciauto Oct 8, 2025
7bf4bab
merge main into amd-staging
z1-cciauto Oct 8, 2025
7264a24
[Comgr] Add more robust lit test for amd_comgr_lookup_code_object()
lamb-j Oct 8, 2025
bf6175f
merge main into amd-staging (#4420)
z1-cciauto Oct 8, 2025
d8f4ea5
merge main into amd-staging
ronlieb Oct 8, 2025
9641924
[openmp] - Update search method for rocm-device-libs during devicertl…
estewart08 Oct 8, 2025
7447d13
Manual update of LLVM_MAIN_REVISION to 555315 API Change
ronlieb Oct 8, 2025
eb04fc5
[Comgr] Remove silent undbundle path from LINK_BC_TO_BC
lamb-j Oct 8, 2025
f6fbde9
merge main into amd-staging (#4423)
ronlieb Oct 9, 2025
252e1de
[openmp] - Update search method for rocm-device-libs during devicertl…
ronlieb Oct 9, 2025
65e2990
merge main into amd-staging
z1-cciauto Oct 9, 2025
9dea788
merge main into amd-staging (#4427)
z1-cciauto Oct 9, 2025
17fa6e4
merge main into amd-staging
ranapratap55 Oct 9, 2025
6e75bea
merge main into amd-staging (#4430)
z1-cciauto Oct 9, 2025
554be6b
merge main into amd-staging
z1-cciauto Oct 9, 2025
284832f
merge main into amd-staging (#4433)
z1-cciauto Oct 9, 2025
4b55c2a
[Flang] Remove self notes/comments that snuck in, in a prior PR
agozillon Oct 9, 2025
648b756
merge main into amd-staging
ronlieb Oct 9, 2025
f5b49a4
merge main into amd-staging (#4437)
z1-cciauto Oct 9, 2025
d84e3f7
[Flang] Remove self notes/comments that snuck in, in a prior PR (#4436)
ronlieb Oct 9, 2025
03c0f2d
[Flang][Test] Fix xfailed descriptor map test
agozillon Oct 9, 2025
c0bd867
merge main into amd-staging
z1-cciauto Oct 9, 2025
30996e1
merge main into amd-staging (#4442)
z1-cciauto Oct 10, 2025
9091a39
[Flang][Test] Fix xfailed descriptor map test (#4440)
ronlieb Oct 10, 2025
6b99d56
merge main into amd-staging
ronlieb Oct 10, 2025
6c801b1
[Compiler-RT] Improve hsa and comgr dependency search for AMDGPU ASan…
ampandey-AMD Oct 10, 2025
ca43ea0
merge main into amd-staging (#4446)
z1-cciauto Oct 10, 2025
9cb043f
merge main into amd-staging
ronlieb Oct 10, 2025
71fbd08
merge main into amd-staging (#4452)
z1-cciauto Oct 10, 2025
2a7ac7b
merge main into amd-staging
ronlieb Oct 10, 2025
b1356c5
Add -famd-allow-threadprivate-equivalence
mjklemm Oct 10, 2025
4cfccb0
[OpenMP] Re-align the frontend attach map flag with the runtime
agozillon Oct 10, 2025
52f3c17
merge main into amd-staging (#4457)
z1-cciauto Oct 10, 2025
aa0337a
merge main into amd-staging
ronlieb Oct 10, 2025
787843b
Manual update of LLVM_MAIN_REVISION to 555559
skganesan008 Oct 10, 2025
1a45cc2
[OpenMP] Re-align the frontend attach map flag with the runtime (#4460)
ronlieb Oct 10, 2025
f6bc0f6
Manual update of LLVM_MAIN_REVISION to 555559 (#4465)
ronlieb Oct 10, 2025
6c897fb
merge main into amd-staging (#4463)
z1-cciauto Oct 10, 2025
9711a53
merge main into amd-staging
z1-cciauto Oct 11, 2025
ccbd44b
merge main into amd-staging (#4468)
z1-cciauto Oct 11, 2025
203a094
merge main into amd-staging
z1-cciauto Oct 11, 2025
a815791
merge main into amd-staging (#4469)
z1-cciauto Oct 11, 2025
017f6ab
merge main into amd-staging
z1-cciauto Oct 11, 2025
f48dcfd
merge main into amd-staging (#4470)
z1-cciauto Oct 11, 2025
ad00072
merge main into amd-staging
z1-cciauto Oct 12, 2025
5cd92f0
merge main into amd-staging (#4472)
z1-cciauto Oct 12, 2025
343af2c
merge main into amd-staging
z1-cciauto Oct 12, 2025
cf48810
merge main into amd-staging (#4473)
z1-cciauto Oct 12, 2025
2d4078e
[Comgr] Fix more warnings related to llvm::Triple
lamb-j Oct 12, 2025
1390c05
[Comgr] fix asan warnings
lamb-j Oct 12, 2025
b0ab995
merge main into amd-staging
z1-cciauto Oct 12, 2025
7837385
merge main into amd-staging (#4475)
z1-cciauto Oct 12, 2025
a78b5f2
merge main into amd-staging
z1-cciauto Oct 13, 2025
550ad3d
merge main into amd-staging (#4476)
z1-cciauto Oct 13, 2025
058f848
merge main into amd-staging
ranapratap55 Oct 13, 2025
29114d9
merge main into amd-staging (#4480)
ronlieb Oct 13, 2025
f09cc1f
merge main into amd-staging
z1-cciauto Oct 13, 2025
37c6bde
merge main into amd-staging (#4481)
z1-cciauto Oct 13, 2025
f9742c6
merge main into amd-staging
z1-cciauto Oct 13, 2025
e27e0c4
move gpurun to offload/utils
ronlieb Oct 14, 2025
1a322c2
[Flang][OpenMP] Fix declare target to implicit mapping
agozillon Oct 10, 2025
0619be9
Tighten restrictions a bit with OpenMP 6.0 wording, still solves swim…
agozillon Oct 10, 2025
3523233
merge main into amd-staging (#4488)
z1-cciauto Oct 14, 2025
6a19f79
merge main into amd-staging
ronlieb Oct 14, 2025
8546c1b
move gpurun to offload/utils (#4493)
ronlieb Oct 14, 2025
48b0fff
[Flang][OpenMP] Fix declare target to implicit mapping (#4444)
agozillon Oct 14, 2025
d903031
merge main into amd-staging (#4494)
z1-cciauto Oct 14, 2025
fca9b1d
merge main into amd-staging
z1-cciauto Oct 14, 2025
e1c8d40
merge main into amd-staging
z1-cciauto Oct 14, 2025
c2048ea
Replace 'master' with 'masked' to make CI happy
mjklemm Oct 14, 2025
0c48d47
merge main into amd-staging (#4497)
z1-cciauto Oct 14, 2025
19d42ac
merge main into amd-staging (#4499)
z1-cciauto Oct 14, 2025
e003618
merge main into amd-staging
z1-cciauto Oct 14, 2025
07c9037
Add -famd-allow-threadprivate-equivalence to pemit variables that app…
ronlieb Oct 14, 2025
d7117c3
[Flang][OpenMP] Fix declare target to with USM
agozillon Oct 14, 2025
f983118
merge main into amd-staging (#4501)
z1-cciauto Oct 14, 2025
f5382ed
merge main into amd-staging
z1-cciauto Oct 14, 2025
348b07e
merge main into amd-staging (#4505)
z1-cciauto Oct 14, 2025
91f7cee
merge main into amd-staging
z1-cciauto Oct 15, 2025
245cc87
merge main into amd-staging
z1-cciauto Oct 15, 2025
3f09781
merge main into amd-staging (#4507)
z1-cciauto Oct 15, 2025
129069b
merge main into amd-staging (#4508)
z1-cciauto Oct 15, 2025
2d01d56
merge main into amd-staging
z1-cciauto Oct 15, 2025
b8036f0
merge main into amd-staging (#4509)
z1-cciauto Oct 15, 2025
5a30b64
merge main into amd-staging
ranapratap55 Oct 15, 2025
69b2d9a
merge main into amd-staging (#4510)
z1-cciauto Oct 15, 2025
6206911
merge main into amd-staging
z1-cciauto Oct 15, 2025
f0e12ec
merge main into amd-staging (#4513)
z1-cciauto Oct 15, 2025
8e78e60
[openmp] fix kmpc build
ronlieb Oct 15, 2025
07ae8aa
[openmp] fix kmpc build (#4516)
ronlieb Oct 15, 2025
73df613
[openmp] - Add -fopenmp to link options for OpenMP::omp target
estewart08 Oct 15, 2025
4e264c9
merge main into amd-staging
ronlieb Oct 15, 2025
71b16e6
merge main into amd-staging (#4523)
z1-cciauto Oct 16, 2025
9c2498b
[openmp] - Add -fopenmp to link options for OpenMP::omp target (#4521)
ronlieb Oct 16, 2025
9da066a
merge main into amd-staging
z1-cciauto Oct 16, 2025
fdb94e7
merge main into amd-staging (#4527)
z1-cciauto Oct 16, 2025
d64decc
merge main into amd-staging
z1-cciauto Oct 16, 2025
c42f721
merge main into amd-staging (#4528)
z1-cciauto Oct 16, 2025
4218149
Add builtin/intrinsic global_(load|store)_b128 (#4455)
macurtis-amd Oct 16, 2025
0f09860
merge main into amd-staging
z1-cciauto Oct 16, 2025
5ee27ae
ReGen llvm/test/Transforms/InstCombine/heterogeneous-poison-dbg-rauw.ll
ronlieb Oct 16, 2025
a92a79e
merge main into amd-staging (#4532)
z1-cciauto Oct 16, 2025
cdaed82
merge main into amd-staging
z1-cciauto Oct 16, 2025
2f2ce5d
SWDEV-526498 - Stop including Perl scripts in HIPCC
david-salinas Aug 18, 2025
bcd0010
merge main into amd-staging (#4537)
z1-cciauto Oct 16, 2025
a6fe327
merge main into amd-staging
ronlieb Oct 16, 2025
028a678
merge main into amd-staging (#4544)
z1-cciauto Oct 16, 2025
8c009c8
[Flang][OpenMP] Fix declare target to with USM (#4503)
ronlieb Oct 17, 2025
b7f9a40
merge main into amd-staging
ronlieb Oct 17, 2025
6c655d6
[Comgr] Use llvm::isAlnum instead of our own version (#4535)
jmmartinez Oct 17, 2025
ac8d915
merge main into amd-staging (#4554)
z1-cciauto Oct 17, 2025
a0582a6
merge main into amd-staging
z1-cciauto Oct 17, 2025
5daea82
SWDEV-526498 - Stop including Perl scripts in HIPCC (#3627)
Oct 17, 2025
34d21cf
Manual update of LLVM_MAIN_REVISION to 556323
skganesan008 Oct 17, 2025
d49ab34
Manual update of LLVM_MAIN_REVISION to 556323 (#4560)
ronlieb Oct 17, 2025
e6d0ffa
merge main into amd-staging (#4556)
z1-cciauto Oct 17, 2025
dd64a8f
merge main into amd-staging
ronlieb Oct 17, 2025
01eeac7
merge main into amd-staging (#4561)
z1-cciauto Oct 18, 2025
991a492
merge main into amd-staging
z1-cciauto Oct 18, 2025
8362f36
merge main into amd-staging (#4562)
z1-cciauto Oct 18, 2025
75afed1
merge main into amd-staging
z1-cciauto Oct 18, 2025
45eb496
merge main into amd-staging (#4564)
z1-cciauto Oct 18, 2025
1e7d8aa
merge main into amd-staging
z1-cciauto Oct 18, 2025
b2f0328
Regen llvm/test/CodeGen/AMDGPU/preload-implicit-kernargs-debug-info-m…
ronlieb Oct 18, 2025
8d09419
Revert "[AMDGPU] Remove redundant s_cmp_lg_* sX, 0 " (#164116)
jplehr Oct 18, 2025
ed0e75e
merge main into amd-staging (#4566)
z1-cciauto Oct 19, 2025
0e6f39c
merge main into amd-staging
z1-cciauto Oct 19, 2025
055c15b
merge main into amd-staging (#4567)
z1-cciauto Oct 19, 2025
98121b8
merge main into amd-staging
z1-cciauto Oct 19, 2025
68893a9
merge main into amd-staging (#4568)
z1-cciauto Oct 19, 2025
7e6dfb0
merge main into amd-staging
z1-cciauto Oct 19, 2025
458e895
merge main into amd-staging (#4570)
z1-cciauto Oct 19, 2025
b269942
merge main into amd-staging
z1-cciauto Oct 20, 2025
683ed44
merge main into amd-staging (#4571)
z1-cciauto Oct 20, 2025
2a016ce
merge main into amd-staging
ronlieb Oct 20, 2025
02518b8
merge main into amd-staging (#4574)
z1-cciauto Oct 20, 2025
d965716
merge main into amd-staging
z1-cciauto Oct 20, 2025
ac6c5a6
merge main into amd-staging (#4577)
z1-cciauto Oct 20, 2025
b177725
merge main into amd-staging
z1-cciauto Oct 20, 2025
3d0ab97
[Flang] Remove merge artifact
agozillon Oct 20, 2025
895d8f0
merge main into amd-staging (#4582)
z1-cciauto Oct 20, 2025
1989bff
merge main into amd-staging
z1-cciauto Oct 20, 2025
4dccc89
merge main into amd-staging (#4587)
z1-cciauto Oct 21, 2025
75eb2a2
[Flang] Remove merge artifact (#4584)
ronlieb Oct 21, 2025
081d7f4
merge main into amd-staging
z1-cciauto Oct 21, 2025
abac7bf
merge main into amd-staging (#4591)
z1-cciauto Oct 21, 2025
d4cedc5
merge main into amd-staging
z1-cciauto Oct 21, 2025
8662397
merge main into amd-staging (#4592)
z1-cciauto Oct 21, 2025
439fb8c
disable PSDB triggers through azure pipeline
skganesan008 Oct 21, 2025
53c2af1
Disable global pull request template for this repository
skganesan008 Oct 20, 2025
65f253d
[OpenMP][Flang] PR 164043 reference merge PR (#333)
agozillon Oct 21, 2025
084ec38
merge main into amd-staging
ronlieb Oct 21, 2025
20410c0
merge main into amd-staging (#336)
ronlieb Oct 22, 2025
9bc87db
merge main into amd-staging
ronlieb Oct 22, 2025
f71dc6f
merge main into amd-staging
ronlieb Oct 22, 2025
d04ce3d
merge main into amd-staging
ranapratap55 Oct 22, 2025
14ddee5
merge main into amd-staging (#338)
ronlieb Oct 22, 2025
3e02de7
merge main into amd-staging
ronlieb Oct 22, 2025
e73d555
merge main into amd-staging (#339)
ronlieb Oct 22, 2025
e937736
merge main into amd-staging
ronlieb Oct 22, 2025
ff37c15
Regen llvm/test/CodeGen/AMDGPU/preload-implicit-kernargs-debug-info-m…
ronlieb Oct 22, 2025
6f44ba8
merge main into amd-staging (#346)
ronlieb Oct 22, 2025
7cee817
[Offload][OMPT] De-type profiler data in API (#340)
jplehr Oct 22, 2025
6eeca37
merge main into amd-staging
ronlieb Oct 22, 2025
83f7f2e
merge main into amd-staging (#350)
ronlieb Oct 22, 2025
bc294b3
merge main into amd-staging
ronlieb Oct 22, 2025
53ce339
Revert "[clang] Don't silently inherit the VFS from `FileManager` (#1…
ronlieb Oct 23, 2025
cfb6bfc
merge main into amd-staging (#354)
ronlieb Oct 23, 2025
0216fcf
[COMGR] Fix API usage per upstream changes (#356)
chinmaydd Oct 23, 2025
51d58bb
merge main into amd-staging
ronlieb Oct 23, 2025
61cfd54
Remove comgr issue: revert_patches.txt
ronlieb Oct 23, 2025
8a5f6df
Regen llvm/test/Transforms/PhaseOrdering/always-inline-alloca-promoti…
ronlieb Oct 23, 2025
d8ece93
merge main into amd-staging (#358)
ronlieb Oct 23, 2025
8048496
merge main into amd-staging
ronlieb Oct 23, 2025
832dd1e
merge main into amd-staging (#359)
ronlieb Oct 23, 2025
ad2718d
merge main into amd-staging
ronlieb Oct 23, 2025
6ffda03
merge main into amd-staging (#361)
ronlieb Oct 23, 2025
752e345
merge main into amd-staging
ronlieb Oct 23, 2025
d35d1d2
merge main into amd-staging (#364)
ronlieb Oct 24, 2025
8157e06
[OMPT] Fix assertion in per-device-enabled tracing (#362)
jplehr Oct 24, 2025
8968fad
merge main into amd-staging
ronlieb Oct 24, 2025
9583ee3
amd-device-libs: Respect ROCM_DEVICE_LIBS_BITCODE_INSTALL_LOC_NEW in …
traversaro Oct 24, 2025
f1e9f96
merge main into amd-staging (#367)
ronlieb Oct 24, 2025
4982567
merge main into amd-staging
ranapratap55 Oct 24, 2025
80d7e59
merge main into amd-staging (#370)
ronlieb Oct 24, 2025
d2bb96d
merge main into amd-staging
ronlieb Oct 24, 2025
0a67184
Revert "REAPPLY [ORC] Add automatic shared library resolver for unres…
ronlieb Oct 24, 2025
ff46ecd
Revert ORC patch
ronlieb Oct 24, 2025
167a295
merge main into amd-staging (#372)
ronlieb Oct 24, 2025
1762f42
merge main into amd-staging
z1-cciauto Oct 24, 2025
bd43e05
regen llvm/test/CodeGen/AMDGPU/llvm.amdgcn.global.load.b128.ll
ronlieb Oct 24, 2025
eebb601
Manual update of LLVM_MAIN_REVISION to 556851 (#377)
skganesan008 Oct 24, 2025
b06c892
merge main into amd-staging (#375)
ronlieb Oct 25, 2025
a852d97
[OMPT] Avoid unused allocations & code clean up (#378)
jplehr Oct 25, 2025
8bb8301
merge main into amd-staging
z1-cciauto Oct 25, 2025
f3d3a2b
merge main into amd-staging (#385)
ronlieb Oct 25, 2025
14d7091
merge main into amd-staging
z1-cciauto Oct 25, 2025
8315cf4
merge main into amd-staging (#387)
ronlieb Oct 25, 2025
5cfaa5b
update revert_patches.txt : remove ORC
ronlieb Oct 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
29 changes: 29 additions & 0 deletions .azuredevops/rocm-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
resources:
repositories:
- repository: pipelines_repo
type: github
endpoint: ROCm
name: ROCm/ROCm

variables:
- group: common
- template: /.azuredevops/variables-global.yml@pipelines_repo

trigger:
batch: true
branches:
include:
- amd-staging
- amd-mainline-open
paths:
exclude:
- .ci
- .github
- '*.md'
- '**/*.md'
- LICENSE.TXT

pr: none

jobs:
- template: ${{ variables.CI_COMPONENT_PATH }}/llvm-project.yml@pipelines_repo
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,8 @@

# libclang/Python bindings
/clang/bindings/python @DeinAlptraum

# AMD-specific projects.
/amd/comgr/ @jlambert_amdeng
/amd/device-libs/ @bsumner_amdeng
/amd/hipcc/ @dsalinas_amdeng
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

27 changes: 27 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
groups:
github-actions:
patterns:
- "*"
- package-ecosystem: "pip"
directory: "/llvm/docs"
schedule:
interval: "monthly"
groups:
llvm-docs-requirements:
patterns:
- "*"
- package-ecosystem: "pip" # See documentation for possible values
directory: "/amd/hipcc/docs/sphinx" # Location of package manifests
open-pull-requests-limit: 10
schedule:
interval: "daily"
labels:
- "documentation"
reviewers:
- "samjwu"
107 changes: 107 additions & 0 deletions .github/workflows/PSDB-amd-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
name: Compiler CI PSDB trigger on amd-staging branch

# Controls when the workflow will run
on:
pull_request:
branches: [amd-staging]
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel, below is a single job called invoke jenkins jobs
jobs:
# This workflow contains a single job called "invoke_jenkins_PSDB"
invoke_jenkins_PSDB:
if: github.event.pull_request.draft == false
runs-on:
group: compiler-generic-runners
env:
svc_acc_org_secret: ${{secrets.CI_GITHUB_TOKEN}}
input_sha: ${{ github.event.pull_request.head.sha != '' && github.event.pull_request.head.sha || github.sha }}
input_pr_num: ${{ github.event.pull_request.number != '' && github.event.pull_request.number || 0 }}
input_pr_url: ${{ github.event.pull_request.html_url != '' && github.event.pull_request.html_url || '' }}
input_pr_title: ${{ github.event.pull_request.title != '' && github.event.pull_request.title || '' }}
# set the pipeline name here based on branch name
pipeline_name: ${{secrets.CI_JENKINS_JOB_NAME}}
JENKINS_URL: ${{secrets.CI_JENKINS_URL}}
CONTAINER_IMAGE: ${{ secrets.JENKINS_TRIGGER_DOCKER_IMAGE }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Set environment variable for container image
run: |
echo "CONTAINER_IMAGE=${{ secrets.JENKINS_TRIGGER_DOCKER_IMAGE }}" >> $GITHUB_ENV
echo "CONTAINER_NAME=my_container_${{ github.run_id }}" >> $GITHUB_ENV
- name: Pull container image
run: docker pull "${{env.CONTAINER_IMAGE}}"


- name: Run container
run: |
docker run -d --name "${{env.CONTAINER_NAME}}" $CONTAINER_IMAGE sleep infinity
#docker exec "${{env.CONTAINER_NAME}}" /bin/bash -c "git clone ${{secrets.CI_UTILS_REPO}} ."
docker exec "${{env.CONTAINER_NAME}}" /bin/bash -c "echo 'Running commands inside the container'"
- name: Escape pull request title
run: |
import json
import os
import shlex
with open('${{ github.event_path }}') as fh:
event = json.load(fh)
escaped = event['pull_request']['title']
with open(os.environ['GITHUB_ENV'], 'a') as fh:
print(f'PR_TITLE={escaped}', file=fh)
shell: python3 {0}

- name: Run Jenkins Cancel Script
env:
JENKINS_URL: ${{secrets.CI_JENKINS_URL}}
JENKINS_USER: ${{secrets.CI_JENKINS_USER}}
JENKINS_API_TOKEN: ${{secrets.CI_JENKINS_TOKEN}}
JENKINS_JOB_NAME: ${{secrets.CI_JENKINS_JOB_NAME}}
PR_NUMBER: ${{ github.event.pull_request.number }}
COMMIT_HASH: ${{ github.event.after }}
run: |
docker exec -e JENKINS_JOB_NAME=${{secrets.CI_JENKINS_JOB_NAME}} -e PR_NUMBER=${{ github.event.pull_request.number }} -e COMMIT_HASH=${{ github.event.after }} -e JENKINS_URL=${{secrets.CI_JENKINS_URL}} -e JENKINS_USER=${{secrets.CI_JENKINS_USER}} -e JENKINS_API_TOKEN=${{secrets.CI_JENKINS_TOKEN}} "${{env.CONTAINER_NAME}}" /bin/bash -c "PYTHONHTTPSVERIFY=0 python3 cancel_previous_build.py"
# Runs a set of commands using the runners shell
- name: Getting Event Details
run: |
echo $(pwd)
echo $GITHUB_ENV
echo $GITHUB_REPOSITORY
echo $GITHUB_SERVER_URL
echo "GITHUB_SHA is: $GITHUB_SHA"
echo "GITHUB_WORKFLOW_SHA is: $GITHUB_WORKFLOW_SHA"
echo "GITHUB_BASE_REF is: $GITHUB_BASE_REF"
echo "GITHUB_REF_NAME is: $GITHUB_REF_NAME"
echo "github.event.pull_request.id is: ${{github.event.pull_request.id}}"
echo "github.event.pull_request.html_url is: ${{github.event.pull_request.html_url}}"
echo "github.event.pull_request.number is: ${{github.event.pull_request.number}}"
echo "github.event.pull_request.url is: ${{github.event.pull_request.url}}"
echo "github.event.pull_request.issue_url is: ${{github.event.pull_request.issue_url}}"
echo "github.event.pull_request.head.sha is: ${{github.event.pull_request.head.sha}}"
echo "github.event.pull_request.base.ref is: ${{github.event.pull_request.base.ref}}"
echo "github.event.pull_request.merge_commit_sha is: ${{github.event.pull_request.merge_commit_sha}}"
echo "github.event.pull_request is: ${{github.event.pull_request}}"
- name: Trigger Jenkins Pipeline
if: steps.check_changes.outcome != 'failure'
run: |
echo "--Running jenkins_api.py with input sha - $input_sha for pull request - $input_pr_url"
docker exec -e GITHUB_REPOSITORY="$GITHUB_REPOSITORY" -e svc_acc_org_secret="$svc_acc_org_secret" -e input_sha="$input_sha" -e input_pr_url="$input_pr_url" -e pipeline_name="$pipeline_name" \
-e input_pr_num="$input_pr_num" -e PR_TITLE="$PR_TITLE" -e JENKINS_URL="$JENKINS_URL" -e GITHUB_PAT="$svc_acc_org_secret" "${{env.CONTAINER_NAME}}" \
/bin/bash -c 'echo \"PR NUM: "$input_pr_num"\" && PYTHONHTTPSVERIFY=0 python3 jenkins_api.py -s \"${JENKINS_URL}\" -jn "$pipeline_name" -ghr "$GITHUB_REPOSITORY" -ghsha "$input_sha" -ghprn "$input_pr_num" -ghpru "$input_pr_url" -ghprt "$PR_TITLE" -ghpat="$svc_acc_org_secret"'
- name: Stop and remove container
if: always()
run: |
docker stop "${{env.CONTAINER_NAME}}"
docker rm "${{env.CONTAINER_NAME}}"
Comment on lines +14 to +106

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
135 changes: 135 additions & 0 deletions .github/workflows/buildbot-psdb-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
name: Trigger amd-debug Buildbot Build
on:
workflow_dispatch:
pull_request:
branches: [amd-debug]
types: [opened, reopened, synchronize, ready_for_review]


jobs:
trigger-build:
if: github.event.pull_request.draft == false
runs-on:
group: compiler-generic-runners
env:
PR_SHA: ${{ github.event.pull_request.head.sha != '' && github.event.pull_request.head.sha || github.sha }}
PR_NUMBER: ${{ github.event.pull_request.number != '' && github.event.pull_request.number || 0 }}
PR_URL: ${{ github.event.pull_request.html_url != '' && github.event.pull_request.html_url || '' }}
PR_TITLE: ${{ github.event.pull_request.title != '' && github.event.pull_request.title || '' }}
BASE_BRANCH: ${{ github.event.pull_request.base.ref != '' && github.event.pull_request.base.ref || '' }}
GITHUB_TOKEN: ${{secrets.CI_GITHUB_TOKEN}}

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Set environment variable for container image
run: |
echo "CONTAINER_IMAGE=${{ secrets.BUILDBOT_DOCKER_IMAGE }}" >> $GITHUB_ENV
echo "CONTAINER_NAME=my_container_${{ github.run_id }}" >> $GITHUB_ENV
- name: Pull container image
run: docker pull "${{env.CONTAINER_IMAGE}}"

- name: Run container
run: |
docker run -d --name "${{env.CONTAINER_NAME}}" $CONTAINER_IMAGE sleep infinity
docker exec "${{env.CONTAINER_NAME}}" /bin/bash -c "echo 'Running commands inside the container'"
- name: Escape pull request title
run: |
import json
import os
import shlex
with open('${{ github.event_path }}') as fh:
event = json.load(fh)
escaped = event['pull_request']['title']
with open(os.environ['GITHUB_ENV'], 'a') as fh:
print(f'PR_TITLE={escaped}', file=fh)
shell: python3 {0}

- name: Trigger Buildbot Build
run: |
echo "${{ secrets.BUILDBOT_HOST }}:${{ secrets.BUILDBOT_WORKER_PORT }}"
docker exec -e PR_TITLE="$PR_TITLE" "${{env.CONTAINER_NAME}}" /bin/bash -c 'buildbot sendchange -W ${{ secrets.BUILDBOT_USER }} -a ${{secrets.BUILDBOT_USER}}:${{secrets.BUILDBOT_PWD}} --master="${{ secrets.BUILDBOT_HOST }}:${{ secrets.BUILDBOT_WORKER_PORT }}" --branch=${{ env.BASE_BRANCH }} --revision=${{ env.PR_SHA }} -p PR_NUMBER:${{ env.PR_NUMBER }} -p PR_TITLE:"$PR_TITLE" -p PR_URL:${{ env.PR_URL }} -p SHA:${{ env.PR_SHA }}'
- name: Set Initial Status to Pending
run: |
docker exec -e PR_SHA=$PR_SHA -e GITHUB_TOKEN=$GITHUB_TOKEN "${{env.CONTAINER_NAME}}" /bin/bash -c "python3 -c \"
import os
import requests
GITHUB_TOKEN = os.getenv('GITHUB_TOKEN')
TARGET_SHA = os.getenv('PR_SHA')
print('debug', TARGET_SHA)
api_url = f'https://api.github.com/repos/AMD-Lightning-Internal/llvm-project/statuses/{TARGET_SHA}'
headers = {
'Authorization': f'token {GITHUB_TOKEN}',
'Content-Type': 'application/json'
}
payload = {
'state': 'pending',
'context': 'buildbot',
'description': 'Build is in queue'
}
response = requests.post(api_url, json=payload, headers=headers)
if response.status_code == 201:
print('Status set to pending successfully.')
else:
print(f'Failed to set status: {response.status_code} {response.text}')
\""
- name: Poll Buildbot build status
run: |
python3 -c "
import os
import time
import requests
GITHUB_TOKEN = os.getenv('GITHUB_TOKEN')
BUILD_URL = 'http://${{ secrets.BUILDBOT_HOST }}:${{ secrets.BUILDBOT_MASTER_PORT }}/api/v2/builds'
TARGET_SHA = os.getenv('PR_SHA')
print('debug', TARGET_SHA)
MAX_RETRIES = 10
RETRY_INTERVAL = 30 # seconds
def get_build_properties(build_id):
build_properties_url = f'http://${{ secrets.BUILDBOT_HOST }}:${{ secrets.BUILDBOT_MASTER_PORT }}/api/v2/builds/{build_id}/properties'
response = requests.get(build_properties_url, headers={'Accept': 'application/json', 'Authorization': f'token {GITHUB_TOKEN}'})
return response.json()
for i in range(MAX_RETRIES):
response = requests.get(BUILD_URL, headers={'Accept': 'application/json'})
response_json = response.json()
print(f'Attempt {i + 1}: Buildbot response:', response_json)
# Check if any build has the target SHA
builds = response_json.get('builds', [])
print (builds)
build_with_sha = None
for build in builds:
build_id = build['buildid']
properties = get_build_properties(build_id)
#print(properties)
#prop = properties.get('revision', [])

if 'properties' in properties:
print (properties['properties'])
if 'revision' in properties['properties'][0]:
print(properties['properties'][0])
if 'revision' in properties['properties'][0] and properties['properties'][0]['revision'] [0] == TARGET_SHA:
build_with_sha = build
break

if build_with_sha:
print('Build started successfully for SHA:', TARGET_SHA)
break
else:
print('Build for SHA not started yet, retrying in', RETRY_INTERVAL, 'seconds')
time.sleep(RETRY_INTERVAL)
else:
print('Build did not start for SHA:', TARGET_SHA, 'after maximum retries')
exit(1)
"
- name: Stop and remove container
if: always()
run: |
docker stop "${{env.CONTAINER_NAME}}"
docker rm "${{env.CONTAINER_NAME}}"
Comment on lines +11 to +135

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
79 changes: 79 additions & 0 deletions .github/workflows/compute-rocm-dkmd-afar-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Trigger compute-rocm-dkms-afar job on push

on:
push: # This triggers the workflow on push events
branches:
- amd-staging
workflow_dispatch: # This allows manual triggering of the workflow

jobs:
trigger_jenkins:
runs-on:
group: compiler-generic-runners

steps:
- name: Set environment variable for container image
run: |
echo "CONTAINER_IMAGE=${{ secrets.JENKINS_TRIGGER_DOCKER_IMAGE }}" >> $GITHUB_ENV
echo "CONTAINER_NAME=my_container_${{ github.run_id }}" >> $GITHUB_ENV
- name: Pull container image
run: docker pull "${{env.CONTAINER_IMAGE}}"

- name: Run container
run: |
docker run -d --name "${{env.CONTAINER_NAME}}" $CONTAINER_IMAGE sleep infinity
docker exec "${{env.CONTAINER_NAME}}" /bin/bash -c "echo 'Running commands inside the container'"
- name: Trigger compute-rocm-dkms-afar job
run: |
docker exec "${{env.CONTAINER_NAME}}" /bin/bash -c "python -c \"
import requests
import time
from requests.auth import HTTPBasicAuth
jenkins_user = '${{ secrets.CI_JENKINS_USER }}'
jenkins_token = '${{ secrets.ROCM_JENKINS_CI_TOKEN }}'
jenkins_host = '${{ secrets.ROCM_JENKINS_HOST }}'
jenkins_job = '${{ secrets.ROCM_JENKINS_OSDB_JOB }}'
jenkins_url = f'{jenkins_host}/job/{jenkins_job}/buildWithParameters'
response = requests.post(jenkins_url, auth=HTTPBasicAuth(jenkins_user, jenkins_token))
if response.status_code == 201:
print('Jenkins job triggered successfully!')
queue_url = response.headers.get('Location')
if queue_url:
print(f'Queue URL: {queue_url}')
print(f'Getting build URL(max 5 attempts with 10seconds interval)...')
# Poll the queue item to get the build number, limited to 5 attempts
max_attempts = 5
attempts = 0
while attempts < max_attempts:
queue_response = requests.get(queue_url + 'api/json', auth=HTTPBasicAuth(jenkins_user, jenkins_token))
queue_data = queue_response.json()
if 'executable' in queue_data:
build_number = queue_data['executable']['number']
build_url = f'{jenkins_host}/job/{jenkins_job}/{build_number}/'
print(f'Build URL: {build_url}')
break
attempts += 1
time.sleep(10) # Wait for 10 seconds before polling again
else:
print('Exceeded maximum attempts to get the build URL. The trigger happened, so not failing the workflow')
else:
print('Build URL not found in the response headers.')
elif response.status_code == 200:
print('Request was successful, but check the response content for details.')
print(response.text)
else:
print(f'Failed to trigger Jenkins job. Status code: {response.status_code}')
\""
- name: Stop and remove container
if: always()
run: |
docker stop "${{env.CONTAINER_NAME}}"
docker rm "${{env.CONTAINER_NAME}}"
Comment on lines +11 to +79

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Loading
Loading