Conversation
|
Review updated until commit e2db707 Description
|
| Relevant files | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Enhancement | 8 files
| ||||||||||||||||
| Tests |
PR Reviewer Guide
Here are some key observations to aid the review process:
| 🧪 PR contains tests |
| ⚡ Recommended focus areas for review |
API Consistency
|
|
!test |
Greptile SummaryIntroduces a new Key changes:
Confidence Score: 3/5
Important Files Changed
Last reviewed commit: e2db707 |
|
!test |
| device_index_constant, | ||
| out_tensor}); | ||
| val_to_value_[allocate->buffer()] = out_tensor; | ||
| val_to_value_[allocate->in()] = out_tensor; |
There was a problem hiding this comment.
zeroInit() flag not handled in JIT path - tensor may contain uninitialized data when allocate->zeroInit() is true
| Val* in, | ||
| MemoryType memory_type, |
There was a problem hiding this comment.
| Val* in, | |
| MemoryType memory_type, | |
| TensorView* in, |
| const std::vector<IterDomain*>& logical_domain = TensorDomain::noReductions( | ||
| allocate->buffer()->as<TensorView>()->getLogicalDomain()); | ||
| const std::vector<IterDomain*>& logical_domain = | ||
| TensorDomain::noReductions(allocate->in()->getLogicalDomain()); |
There was a problem hiding this comment.
Consider | TensorDomain::kNoReductions
|
Thanks for the early feedback @wujingyue. |
Creating a new
hir::Allocatenode that always allocates a new tensor. This is required to create new buffers per stream instead of reusing across streams which will require synchronization.I am not modifying
kir::Allocatehandling. That caused errors with MultiDeviceExecutor tests.