-
Notifications
You must be signed in to change notification settings - Fork 77
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
Nonam3e/golang/keccak #496
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor questions and comments
@@ -245,7 +245,7 @@ namespace keccak { | |||
CHK_IF_RETURN(cudaMallocAsync(&output_device, number_of_blocks * (D / 8), stream)); | |||
} | |||
|
|||
int number_of_threads = 1024; | |||
int number_of_threads = 512; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this being reduced?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keccak kernel requires a lot of registers, so running with 1024 threads won't fit the GPU
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this working before hand though?
## Describe the changes This PR adds keccak bindings + passes cfg as reference in keccak cuda functions
Describe the changes
This PR adds keccak bindings + passes cfg as reference in keccak cuda functions