inducer / inducer/loopy

[loopy.match] Targeting reduction expression in an instruction

Open
#428 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
636
Forks
81
Avg merge
1d 19h
Merged PRs (30d)
7

Description

In the following kernel:
```python
knl = lp.make_kernel(
["{[i]: 0<=i<8}",
"{[j]: 8<=j<10}"],
"""
out = sum(i, x[i]) + sum(j, x[j])
""")
```

It seems that there's no way to prefetch `x` in the sum-reduce over `i`. The root of the problem seems to be that the IR does not allow tagging reduction expressions.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.