Skip to content

how to efficiently calculate sum of cumulative product on sliding window? #16652

Answered by jakevdp
frskplis asked this question in General
Discussion options

You must be logged in to vote

It may be possible to do this more efficiently with a custom kernel, but keep in mind that the kinds of operations that are efficient on GPUs are the kinds of operations used in my solution (full-axis reductions over statically-sized arrays). You'd probably have to play some of the same tricks in your custom kernel that I did in func3, but I wouldn't be surprised if you could make it faster with some thought.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jakevdp
Comment options

Answer selected by frskplis
@frskplis
Comment options

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