demo how to schedule allocation domain and get domains to be allocated#4791
demo how to schedule allocation domain and get domains to be allocated#4791
Conversation
|
Review updated until commit 8763303 Description
Changes walkthrough 📝
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
!test |
de0c7fb to
1338ae0
Compare
|
!test |
040e349 to
3a06741
Compare
1338ae0 to
5e7592e
Compare
|
!test |
tests/cpp/test_allocation_domain.cpp
Outdated
| // } | ||
| // where iS11{3} and iS15{3} are in the same set. | ||
|
|
||
| fusion->print(); |
There was a problem hiding this comment.
nitpick: remove debug code.
| // Update the allocation domain | ||
| AbstractTensor alloc_tensor(tv1->getAllocationDomain()); | ||
| alloc_tensor.split(0, 4); | ||
| tv1->setAllocationDomain(alloc_tensor.as<IterDomain*>(), true); |
There was a problem hiding this comment.
IIUC, the replay on allocation domain needs to be done by the scheduler. So there's going to be another PR plumbing that?
There was a problem hiding this comment.
Yes, it is here
| return exclude_id; | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Looks like the existing comment for this function already contains this piece, well planned sir 😆
|
!build |
…loop domain (NVIDIA#4791) (1) added a test to manually schedule allocation domain. (2) use IdModel to detect mapping between scheduled allocation domain and loop domain.
Following #4792
This PR added a test to manually schedule allocation domain and use IdModel to detect mapping between scheduled allocation domain and loop domain.
Auto schedule is added in a following PR at #4795