spcl / spcl/dace

LoopToMap Parallelizing Loops That Should Not Become Maps

Open
#2,247 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
593
Forks
163
Avg merge
2d 23h
Merged PRs (30d)
60

Description

LoopToMap parallelizes this loop taken from the tsvc 2 benchmark:

```
@dace.program
def dace_s2244(a: dace.float64[LEN_1D],
b: dace.float64[LEN_1D],
c: dace.float64[LEN_1D],
e: dace.float64[LEN_1D]):

for nl in range(ITERATIONS):
for i in range(LEN_1D - 1):
a[i + 1] = b[i] + e[i]
a[i] = b[i] + c[i]
```

I have attached the SDFG as a JSON.

[dace_s2244_ltm.sdfg.json](https://github.com/user-attachments/files/24037853/dace_s2244_ltm.sdfg.json)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.