mars-project / mars-project/mars

Optimize consecutive binary operands using tree reduction

Open
#2,023 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

mod: tensor type: feature
Dominant language
Python
Stars
2.7k
Forks
325
PR merge metrics
No merged PRs in 30d

Description

Continuous arithmetic calculations like a + b + c + d can be optimized with tree reductions (i.e., TreeReduction(a, b, c, d) which makes operand tree more shallow and can be parallelized easier.

This may be implemented with

  • operands for arithmetic tree reduction, and
  • optimization strategy for continuous operands

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating the existing TreeReduction implementation and the handling of consecutive arithmetic operands, then trace how an optimization strategy is selected. Done means continuous binary operands use the intended tree reduction and coverage verifies the optimization.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.