8000 [Refactor] Enforce attaching storage scope to PointerType by masahi · Pull Request #8366 · apache/tvm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Refactor] Enforce attaching storage scope to PointerType #8366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 92 commits into from
Jul 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
a84db69
Add storage scope to ProducerRealize, always create a buffer with scope
Jun 30, 2021
0140631
update schedule_ops.cc
Jun 30, 2021
b6d8e6c
update schedule_postproc_to_primfunc.cc
Jun 30, 2021
bebcc50
restore more realize_scope
Jun 30, 2021
edeaed2
make the default scope be "" instead of None in ir builder
Jun 30, 2021
cd6167e
restore realize_scope visit in storage_flatten.cc
Jun 30, 2021
a33fb0d
update storage_access.cc
Jun 30, 2021
e878eae
make sure buffer var is of PointerType in ir builder
Jun 30, 2021
9f98dea
enforce default storage scope of global
Jul 1, 2021
2923f4d
added remap pass but does not work yet
masahi Jul 1, 2021
6a79354
fixed all reduce issue
masahi Jul 2, 2021
a566af9
simplify
masahi Jul 2, 2021
345573a
trying mitigation for aot test
masahi Jul 2, 2021
be2ab96
merge remaining changes from initial branch
8000 masahi Jul 2, 2021
f83cba0
remove use of attr::storage_scope from codegen
Jul 2, 2021
f1b0f3c
restore a visit to AttrStmt with attr::storage_scope in storage_rewrite
Jul 2, 2021
30edcd6
disable check
Jul 2, 2021
9560f1b
lint fix
Jul 2, 2021
3de3edd
revert default scope to ""
masahi Jul 2, 2021
b703d8b
format
masahi Jul 2, 2021
b7abe5a
fix volatile access to shared mem in lower all reduce
Jul 4, 2021
62f818c
fixed gpu coorporative load/store test
Jul 4, 2021
d41bdc8
pass storage scope to PointerType in tvm script parser
Jul 5, 2021
594d34b
fixed tvmscript roundtrip test
Jul 6, 2021
151eb02
fixed tir flatten buffer test
Jul 6, 2021
1e88335
fixed test_tir_transform_hoist_if.py
Jul 6, 2021
7e8a7c1
use storage scope global by default in aot_executor_codegen.cc
Jul 6, 2021
d458187
add missing default storage scope in create_primfunc.cc
Jul 6, 2021
410fd45
restore StorageInfo struct in llvm backend
Jul 6, 2021
742c243
UpdateStorageScope -> WithStorageScope
Jul 6, 2021
aa90d42
fixed lower warp memory test
Jul 6, 2021
1e9a7a3
GetStorageScope -> GetPtrStorageScope
Jul 6, 2021
afbe7f1
Enable storage scope invariant check in AttrStmt constructor
Jul 6, 2021
ee3aa5d
remove GetPtrStorageScope and WithStorageScope from public header
Jul 6, 2021
accfff4
move RemapStorageScope to its own file
Jul 6, 2021
a74aece
add more method to RemapStorageScope
Jul 6, 2021
98c3c3c
update lower_thread_allreduce to use RemapStorageScope
Jul 6, 2021
bafdb47
RemapStorageScope -> UpdatePointerStorageScope
Jul 7, 2021
16c81b5
remove realize_scope from hybrid script
masahi Jul 7, 2021
a14c5fa
removed realize_scope in schedule_ops
masahi Jul 7, 2021
c2ea828
remove realize_scope from schedule_postproc_to_primfunc
masahi Jul 7, 2021
d401022
remove remaining realize_scope usage from schedule_ops.cc
masahi Jul 7, 2021
de83623
remove realize_scope usage from storage_flatten.cc
masahi Jul 7, 2021
426b573
fixed test_tir_transform_lower_warp_memory.py following realize_scope…
Jul 7, 2021
1964f74
Add storage scope to ProducerRealize, always create a buffer with scope
Jun 30, 2021
63e0c85
update schedule_ops.cc
Jun 30, 2021
24225e5
update schedule_postproc_to_primfunc.cc
Jun 30, 2021
9ddfb28
restore more realize_scope
Jun 30, 2021
416169c
make the default scope be "" instead of None in ir builder
Jun 30, 2021
da3053e
restore realize_scope visit in storage_flatten.cc
Jun 30, 2021
76ed1ab
update storage_access.cc
Jun 30, 2021
e95146e
make sure buffer var is of PointerType in ir builder
Jun 30, 2021
13b2efc
enforce default storage scope of global
Jul 1, 2021
ae8858a
added remap pass but does not work yet
masahi Jul 1, 2021
cec5a0a
fixed all reduce issue
masahi Jul 2, 2021
e4f0965
simplify
masahi Jul 2, 2021
fca791c 8000
trying mitigation for aot test
masahi Jul 2, 2021
a80dfad
merge remaining changes from initial branch
masahi Jul 2, 2021
6fd0fb3
remove use of attr::storage_scope from codegen
Jul 2, 2021
b3fa275
restore a visit to AttrStmt with attr::storage_scope in storage_rewrite
Jul 2, 2021
b62d8a1
disable check
Jul 2, 2021
4a084d7
lint fix
Jul 2, 2021
73911a9
revert default scope to ""
masahi Jul 2, 2021
1c8b779
format
masahi Jul 2, 2021
9f54b62
fix volatile access to shared mem in lower all reduce
Jul 4, 2021
034fb72
fixed gpu coorporative load/store test
Jul 4, 2021
6081519
pass storage scope to PointerType in tvm script parser
Jul 5, 2021
2d92f6d
fixed tvmscript roundtrip test
Jul 6, 2021
35fb917
fixed tir flatten buffer test
Jul 6, 2021
46647e9
fixed test_tir_transform_hoist_if.py
Jul 6, 2021
db8eb9a
use storage scope global by default in aot_executor_codegen.cc
Jul 6, 2021
66c61ae
add missing default storage scope in create_primfunc.cc
Jul 6, 2021
bd76606
restore StorageInfo struct in llvm backend
Jul 6, 2021
4cae209
UpdateStorageScope -> WithStorageScope
Jul 6, 2021
01b94cc
fixed lower warp memory test
Jul 6, 2021
cbaa6e7
GetStorageScope -> GetPtrStorageScope
Jul 6, 2021
20b930b
Enable storage scope invariant check in AttrStmt constructor
Jul 6, 2021
a247d94
remove GetPtrStorageScope and WithStorageScope from public header
Jul 6, 2021
0d8c9bc
move RemapStorageScope to its own file
Jul 6, 2021
c295338
add more method to RemapStorageScope
Jul 6, 2021
ebaceb9
update lower_thread_allreduce to use RemapStorageScope
Jul 6, 2021
0bf5081
RemapStorageScope -> UpdatePointerStorageScope
Jul 7, 2021
c03c360
remove realize_scope from hybrid script
masahi Jul 7, 2021
21d4134
removed realize_scope in schedule_ops
masahi Jul 7, 2021
0ff503b
remove realize_scope from schedule_postproc_to_primfunc
masahi Jul 7, 2021
086d891
remove remaining realize_scope usage from schedule_ops.cc
masahi Jul 7, 2021
e60ad8d
remove realize_scope usage from storage_flatten.cc
masahi Jul 7, 2021
cb697d8
fixed test_tir_transform_lower_warp_memory.py following realize_scope…
Jul 7, 2021
6a11ab4
minor fix
masahi Jul 8, 2021
f459dbf
Address comments
masahi Jul 10, 2021
3e5e0ef
Remove blank line diff
masahi Jul 12, 2021
5710513
Merge remote-tracking branch 'upstream/main' into storage_scope_refactor
masahi Jul 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/dev/inferbound.rst
Original file line number Diff line number Diff line change
Expand Up @@ -447,13 +447,11 @@ Here is the IR after ScheduleOps (note that loops with extent 1 have been preser

::

// attr [compute(D, 0x2c070b0)] realize_scope = ""
realize D([0, 4], [0, 5], [0, 16]) {
produce D {
for (di, 0, 4) {
for (dj, 0, 5) {
for (dk, 0, 16) {
// attr [compute(C, 0x2c29990)] realize_scope = ""
realize C([dj, 1], [dk, 1]) {
produce C {
for (i, 0, 1) {
Expand Down
15 changes: 8 additions & 7 deletions include/tvm/te/operation.h