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

Enforce exponent sharing in sliding-window modexp function #41

Open
unzvfu opened this issue Aug 13, 2018 · 1 comment
Open

Enforce exponent sharing in sliding-window modexp function #41

unzvfu opened this issue Aug 13, 2018 · 1 comment

Comments

@unzvfu
Copy link
Collaborator

unzvfu commented Aug 13, 2018

At the moment the exponent window array is mallocated once per slot (see modexp<...>::modexp(...)), whereas it doesn't make a lot of sense to use the function unless all the exponents in the warp (or even the thread block) are the same.

Also, mallocing all that data is computationally expensive.

Also it might blow the 8MB default heap size, which would require manually managing the heap size from outside the modexp function call, which would be a pain in the neck.

@unzvfu
Copy link
Collaborator Author

unzvfu commented Mar 21, 2020

Follow up at unzvfu#23.

@unzvfu unzvfu removed their assignment Mar 21, 2020
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