Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass that turns symbol assignment to dynamic map ranges #1668

Open
tbennun opened this issue Sep 26, 2024 · 0 comments
Open

Pass that turns symbol assignment to dynamic map ranges #1668

tbennun opened this issue Sep 26, 2024 · 0 comments

Comments

@tbennun
Copy link
Collaborator

tbennun commented Sep 26, 2024

In many cases we generate SDFGs with symbol assignments where they could be dynamic map ranges.

Example:

@dace.program
def spmv(A_row: dace.uint32[H + 1], A_col: dace.uint32[nnz], A_val: dace.float32[nnz], x: dace.float32[W]):
    b = np.zeros([H], dtype=np.float32)

    for i in dace.map[0:H]:
        begin = A_row[i]
        end = A_row[i + 1]
        for j in dace.map[begin:end]:
            b[i] += A_val[j] * x[A_col[j]]

    return b

We should make a pass or transformation to "demote" certain symbol assignments to the tasklets or maps as necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant