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

Parallel base sum computation #162

Open
eigmax opened this issue Nov 22, 2023 · 0 comments
Open

Parallel base sum computation #162

eigmax opened this issue Nov 22, 2023 · 0 comments

Comments

@eigmax
Copy link
Member

eigmax commented Nov 22, 2023

When we evaluate some point x on a polynomial p(a_0, ..., a_d), we usually have such a function:

a_0 + x * ( a_1 + x * ( ...  x * a_d ... ))

I think we can convert it to the classical prefix sum problem, by which, given an input array a[0..n], we output b[0..n], where b[i] = sum_j (a[j]), j < i.

i.e.

out[0] = 0; for j from 1 to n do   out[j] = out[j-1] + f(in[j-1]); 

TBD

Reference: https://developer.nvidia.cn/gpugems/gpugems3/part-vi-gpu-computing/chapter-39-parallel-prefix-sum-scan-cuda

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