Page MenuHomePhabricator

sumesh13 (Sumesh Udayakumaran)
User

Projects

User does not belong to any projects.

User Details

User Since
Apr 1 2021, 9:31 AM (103 w, 11 h)

Recent Activity

Aug 1 2022

sumesh13 added a comment to D125128: [MLIR][affine-loop-fusion] Fix incorrect slice bounds on reduction producers when fusing.

@dcaballe Sorry couldnt remind earlier. Was on vacation myself. Did you need anything else for the review ?

Aug 1 2022, 9:31 AM · Restricted Project, Restricted Project

Jun 9 2022

sumesh13 updated the diff for D125128: [MLIR][affine-loop-fusion] Fix incorrect slice bounds on reduction producers when fusing.

Recommit fix that address the incorrect fusion shown in last commit

Jun 9 2022, 5:24 PM · Restricted Project, Restricted Project
sumesh13 added a comment to D125128: [MLIR][affine-loop-fusion] Fix incorrect slice bounds on reduction producers when fusing.

@dcaballe Thanks for the suggestion. I have added the example that shows the incorrect fusion. You see how the initialization of the reduction is merged into the reduction body due to bounds of the slice being set as 1.

Jun 9 2022, 5:10 PM · Restricted Project, Restricted Project
sumesh13 updated the diff for D125128: [MLIR][affine-loop-fusion] Fix incorrect slice bounds on reduction producers when fusing.

Example showing fusion is incorrect after slice with incorrect bounds is inserted.

Jun 9 2022, 4:32 PM · Restricted Project, Restricted Project
sumesh13 set the repository for D125128: [MLIR][affine-loop-fusion] Fix incorrect slice bounds on reduction producers when fusing to rG LLVM Github Monorepo.
Jun 9 2022, 4:29 PM · Restricted Project, Restricted Project

Jun 2 2022

sumesh13 retitled D125128: [MLIR][affine-loop-fusion] Fix incorrect slice bounds on reduction producers when fusing from [MLIR][affine-loop-fusion] Fix a bug that fuses producers that are reductions incorrectly to [MLIR][affine-loop-fusion] Fix incorrect slice bounds on reduction producers when fusing.
Jun 2 2022, 12:52 PM · Restricted Project, Restricted Project
sumesh13 added a reviewer for D125128: [MLIR][affine-loop-fusion] Fix incorrect slice bounds on reduction producers when fusing: ftynse.
Jun 2 2022, 12:51 PM · Restricted Project, Restricted Project

May 30 2022

sumesh13 added a comment to D125128: [MLIR][affine-loop-fusion] Fix incorrect slice bounds on reduction producers when fusing.

@vinayaka-polymage Thanks for taking a look! Perhaps I should have worded it differently. The result of the entire fusion is what am referring to here . While it is a valid fusion canidadate, what is incorrect is not using the entire slice bounds. A similar fixing of bounds
happens when there is read-read dependency. See https://github.com/llvm/llvm-project/blob/3e6ba89055c80e6360b7605464520711b30084a6/mlir/lib/Dialect/Affine/Analysis/Utils.cpp#L1107 . My change is along those lines and is keeping the origina bounds
when the producer is a memref based reduction. The pattern checking is checking if it is a memref based reduction like suggested in https://discourse.llvm.org/t/detecting-reduction-loops-in-affine-dialect/2527

May 30 2022, 6:22 AM · Restricted Project, Restricted Project

May 16 2022

sumesh13 added a comment to D125128: [MLIR][affine-loop-fusion] Fix incorrect slice bounds on reduction producers when fusing.

Ping...

May 16 2022, 11:27 AM · Restricted Project, Restricted Project

May 9 2022

sumesh13 updated the diff for D125128: [MLIR][affine-loop-fusion] Fix incorrect slice bounds on reduction producers when fusing.

Update test

May 9 2022, 3:57 PM · Restricted Project, Restricted Project
sumesh13 updated the diff for D125128: [MLIR][affine-loop-fusion] Fix incorrect slice bounds on reduction producers when fusing.

clang-format fix

May 9 2022, 11:38 AM · Restricted Project, Restricted Project

May 6 2022

sumesh13 requested review of D125128: [MLIR][affine-loop-fusion] Fix incorrect slice bounds on reduction producers when fusing.
May 6 2022, 1:48 PM · Restricted Project, Restricted Project

Sep 27 2021

sumesh13 committed rGb2af2aeea679: [mlir] Mode for explicitly controlling the fusion kind (authored by sumesh13).
[mlir] Mode for explicitly controlling the fusion kind
Sep 27 2021, 10:49 AM
sumesh13 closed D110102: [mlir] Mode for explicitly controlling the fusion kind.
Sep 27 2021, 10:48 AM · Restricted Project

Sep 24 2021

sumesh13 updated the diff for D110102: [mlir] Mode for explicitly controlling the fusion kind.

Address code review comments

Sep 24 2021, 10:31 AM · Restricted Project

Sep 23 2021

sumesh13 added inline comments to D110102: [mlir] Mode for explicitly controlling the fusion kind.
Sep 23 2021, 9:05 AM · Restricted Project
sumesh13 updated the diff for D110102: [mlir] Mode for explicitly controlling the fusion kind.

Address code review comments

  • Input option as enum
  • Producer Fusion with max src count
Sep 23 2021, 9:04 AM · Restricted Project

Sep 20 2021

sumesh13 requested review of D110102: [mlir] Mode for explicitly controlling the fusion kind.
Sep 20 2021, 12:55 PM · Restricted Project

Aug 3 2021

sumesh13 committed rG24b0df868604: [NFC][MLIR] Split large fusion test file into 4 test files (authored by sumesh13).
[NFC][MLIR] Split large fusion test file into 4 test files
Aug 3 2021, 10:13 AM
sumesh13 closed D106473: [NFC][MLIR] Split large fusion test file into two test files.
Aug 3 2021, 10:13 AM · Restricted Project

Aug 1 2021

sumesh13 updated the summary of D106473: [NFC][MLIR] Split large fusion test file into two test files.
Aug 1 2021, 3:13 PM · Restricted Project
sumesh13 updated the diff for D106473: [NFC][MLIR] Split large fusion test file into two test files.

4 -way split that brings down the time per test from 5.5 seconds on a 16 core machine to about 1.5 second. The last file has some more room to grow.

Aug 1 2021, 3:12 PM · Restricted Project

Jul 22 2021

sumesh13 added a comment to D106473: [NFC][MLIR] Split large fusion test file into two test files.

Here is using time on a 16 core machine

Jul 22 2021, 12:23 PM · Restricted Project

Jul 21 2021

sumesh13 added a comment to D106473: [NFC][MLIR] Split large fusion test file into two test files.

mlir/test/transforms/loop-fusion.mlir is too big and is split into mlir/test/transforms/loop-fusion.mlir and mlir/test/transforms/loop-fusion-2.mlir

On which basis? Don't you think having _two similar names_ make confusion who don't know the context of test splitting.

This test case file has been slowing down check-mlir for everyone. I won't be surprised if this is the one that runs the longest across all test cases in the codebase. It has to be split. Open to a better/logical way of partitioning (for eg. sibling fusion vs producer consumer fusion) but they both might just be intertwined to separate in a balanced way. It is common for large files to be split this way - both sources and test cases. For eg. in the TF/MLIR repo, tf_ops.cc became too large and they went with something like t_ops_a_m.cc and tf_ops_n_z.cc to cut down the 60+s compile time.

The main problem for me is that this split feels rather arbitrary. The original file still has >3000 lines. Has any benchmarking gone into determining the split point/number of partitions/etc?

Jul 21 2021, 8:43 PM · Restricted Project
sumesh13 requested review of D106473: [NFC][MLIR] Split large fusion test file into two test files.
Jul 21 2021, 12:07 PM · Restricted Project

Jul 15 2021

sumesh13 committed rGada580863f89: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused… (authored by sumesh13).
[mlir] Enable cleanup of single iteration reduction loops being sibling-fused…
Jul 15 2021, 2:08 PM
sumesh13 closed D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .
Jul 15 2021, 2:07 PM · Restricted Project
sumesh13 updated the diff for D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

One asan fix

Jul 15 2021, 10:38 AM · Restricted Project

Jul 14 2021

sumesh13 updated the diff for D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

Fix a clang-format issue

Jul 14 2021, 11:59 AM · Restricted Project
sumesh13 updated the diff for D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

FIx a clang-format issue

Jul 14 2021, 11:58 AM · Restricted Project
sumesh13 added a comment to D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

Thanks @bondhugula @vinayaka-polymage for the review and helpful comments!!

Jul 14 2021, 11:44 AM · Restricted Project

Jul 12 2021

sumesh13 updated the diff for D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

isReductionLoop->isLoopParallelAndContainsReductionLoop

Jul 12 2021, 10:29 PM · Restricted Project
sumesh13 added inline comments to D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .
Jul 12 2021, 7:18 PM · Restricted Project

Jul 11 2021

sumesh13 added inline comments to D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .
Jul 11 2021, 10:35 PM · Restricted Project

Jul 8 2021

sumesh13 added inline comments to D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .
Jul 8 2021, 11:02 PM · Restricted Project
sumesh13 updated the diff for D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

Adrress review comments

Jul 8 2021, 10:58 PM · Restricted Project

Jul 6 2021

sumesh13 added inline comments to D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .
Jul 6 2021, 12:46 PM · Restricted Project
sumesh13 updated the diff for D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

Address comments

  • Reflow all coments
    • Additional argument to promoteSingleIterReduction to control when operations are moved out
Jul 6 2021, 12:44 PM · Restricted Project

Jun 28 2021

sumesh13 added inline comments to D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .
Jun 28 2021, 11:58 AM · Restricted Project
sumesh13 updated the diff for D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

Add an extra clarification for when the promotion API can be safely used.

Jun 28 2021, 11:57 AM · Restricted Project
sumesh13 added a comment to D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

@vinayaka-polymage Thanks for additional comments. Can you pls check if my clarifications address your concerns?

Jun 28 2021, 11:50 AM · Restricted Project
sumesh13 updated the diff for D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

Address comments

Jun 28 2021, 11:42 AM · Restricted Project

Jun 24 2021

sumesh13 added a comment to D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

Reflow a comment

Jun 24 2021, 11:40 AM · Restricted Project
sumesh13 updated the diff for D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

Reflow a comment

Jun 24 2021, 11:39 AM · Restricted Project
sumesh13 added a comment to D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

@sumesh13 Could you also please mention whether some of the methods were just moved without any change? That's useful in the commit summary.

Jun 24 2021, 10:41 AM · Restricted Project
sumesh13 updated the diff for D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

Address code review comments including rename API to replaceForOpWithNewYields

Jun 24 2021, 10:37 AM · Restricted Project

Jun 23 2021

sumesh13 added a comment to D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

Thansk for the additional comments.

Jun 23 2021, 12:15 PM · Restricted Project
sumesh13 updated the diff for D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

Address review comments and add check to only do cleanup if the loop trip counts match.

Jun 23 2021, 12:12 PM · Restricted Project

Jun 21 2021

sumesh13 added a comment to D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

Thanks for the feedback. I have addressed the review comments. Please take a look.

Jun 21 2021, 10:17 AM · Restricted Project
sumesh13 updated the diff for D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

Address Code review comments

Jun 21 2021, 10:15 AM · Restricted Project
sumesh13 updated the diff for D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .

Address Code review comments

Jun 21 2021, 9:59 AM · Restricted Project

Jun 14 2021

sumesh13 requested review of D104249: [mlir] Enable cleanup of single iteration reduction loops being sibling-fused maximally .
Jun 14 2021, 11:22 AM · Restricted Project

Apr 13 2021

sumesh13 added a comment to D99761: [mlir] Prevent operations with users from being hoisted.

@bondhugula , @vinayaka-polymage thanks for the review. @sgrechanik Can you pls help land this

Apr 13 2021, 11:47 AM · Restricted Project
sumesh13 added a comment to D99761: [mlir] Prevent operations with users from being hoisted.

Address comment on simplifying condition to add ops with users.

Apr 13 2021, 10:46 AM · Restricted Project
sumesh13 updated the diff for D99761: [mlir] Prevent operations with users from being hoisted.

Simplify condition to collect ops with users.

Apr 13 2021, 10:45 AM · Restricted Project
sumesh13 added a comment to D99761: [mlir] Prevent operations with users from being hoisted.

Gentle reminder..also pls suggest if it would be better to collect all the opsWithUsers separately as i was doing in a previous revision. For nested ifs, looks like otherwise you may not be collecting all the opsWithUsers by just collecting at the top level and leaves.

Apr 13 2021, 10:23 AM · Restricted Project

Apr 12 2021

sumesh13 added a comment to D99761: [mlir] Prevent operations with users from being hoisted.

Adding back a change from previous revision that was approved and some minor cleanup.

Apr 12 2021, 10:15 AM · Restricted Project
sumesh13 updated the diff for D99761: [mlir] Prevent operations with users from being hoisted.

Revert to earlier revision that was approved and some minor cleanup of comments.

Apr 12 2021, 10:13 AM · Restricted Project
sumesh13 added a comment to D99761: [mlir] Prevent operations with users from being hoisted.

@vinayaka-polymage Just noticed that you accepted a previous revision with comment on handling of ifops. Considering ifops, would you think it might be helpful to just collect all the ops like I was doing in a previous revision ?

Apr 12 2021, 10:10 AM · Restricted Project
sumesh13 updated the diff for D99761: [mlir] Prevent operations with users from being hoisted.

Address comments

Apr 12 2021, 10:03 AM · Restricted Project
sumesh13 added a comment to D99761: [mlir] Prevent operations with users from being hoisted.

Mark review comments as done and undo a typo that had crept in

Apr 12 2021, 9:16 AM · Restricted Project
sumesh13 updated the diff for D99761: [mlir] Prevent operations with users from being hoisted.

Undo a change w.r.t to the base that had crept in

Apr 12 2021, 9:15 AM · Restricted Project
sumesh13 added a comment to D99761: [mlir] Prevent operations with users from being hoisted.

@vinayaka-polymage Thanks for the comments. Pls take a look

Apr 12 2021, 9:01 AM · Restricted Project
sumesh13 updated the diff for D99761: [mlir] Prevent operations with users from being hoisted.

Address review comments on code reorg

Apr 12 2021, 9:00 AM · Restricted Project

Apr 11 2021

sumesh13 added a comment to D99761: [mlir] Prevent operations with users from being hoisted.

I have addresses the comments. Pls take a look.

Apr 11 2021, 11:19 AM · Restricted Project
sumesh13 added a comment to D99761: [mlir] Prevent operations with users from being hoisted.

Thank you for bringing up this issue in LICM, it is an important one. I have a few comments on the fix:

  1. Inherent issue is definedOps ( going to be renamed to opsWithUsers) is being populated only under some conditions, and does not actually do the job of collecting all ops that define an SSA value in that block.
  2. Even after this fix, only AffineForOps will be added to the list, but there are other cases like AffineDma... ops, AffineIfOps that are actually NOT code invariant etc. which will still cause similar problems.

So, I suggest that you can implement a generic fix for this inherent issue, where any op that defines an SSA value can be added to the above list, and this is decoupled from the checks like 'isOpLoopInvariant`. This will make the check more robust, and relevant test cases can also be added.

Apr 11 2021, 11:17 AM · Restricted Project
sumesh13 updated the diff for D99761: [mlir] Prevent operations with users from being hoisted.

Rework based on comments

  • Separate the part that identifies operations that have users and use it in the later phase.
Apr 11 2021, 11:15 AM · Restricted Project
sumesh13 retitled D99761: [mlir] Prevent operations with users from being hoisted from [mlir] Prevent AffineFor users from being hoisted to [mlir] Prevent operations with users from being hoisted.
Apr 11 2021, 11:12 AM · Restricted Project

Apr 7 2021

sumesh13 added a comment to D99761: [mlir] Prevent operations with users from being hoisted.

Gentle ping

Apr 7 2021, 8:27 PM · Restricted Project

Apr 5 2021

sumesh13 added inline comments to D99761: [mlir] Prevent operations with users from being hoisted.
Apr 5 2021, 1:42 PM · Restricted Project

Apr 2 2021

sumesh13 updated the diff for D99761: [mlir] Prevent operations with users from being hoisted.
  1. Address code review comments including renaming definedOps to opsWithusers
Apr 2 2021, 8:37 AM · Restricted Project

Apr 1 2021

sumesh13 added a reviewer for D99761: [mlir] Prevent operations with users from being hoisted: bondhugula.
Apr 1 2021, 1:47 PM · Restricted Project
sumesh13 requested review of D99761: [mlir] Prevent operations with users from being hoisted.
Apr 1 2021, 12:37 PM · Restricted Project