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

Nonam3e/golang/keccak #496

Merged
merged 9 commits into from
May 1, 2024
Merged

Nonam3e/golang/keccak #496

merged 9 commits into from
May 1, 2024

Conversation

nonam3e
Copy link
Contributor

@nonam3e nonam3e commented Apr 24, 2024

Describe the changes

This PR adds keccak bindings + passes cfg as reference in keccak cuda functions

@nonam3e nonam3e marked this pull request as ready for review April 30, 2024 12:03
Copy link
Collaborator

@jeremyfelder jeremyfelder left a 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

wrappers/golang/internal/generator/mock/generate.go Outdated Show resolved Hide resolved
@@ -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;
Copy link
Collaborator

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?

Copy link
Contributor

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

Copy link
Collaborator

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?

wrappers/golang/hash/keccak/hasher.go Outdated Show resolved Hide resolved
wrappers/golang/hash/keccak/hasher.go Outdated Show resolved Hide resolved
@nonam3e nonam3e requested a review from jeremyfelder May 1, 2024 08:50
@jeremyfelder jeremyfelder merged commit e2ad621 into main May 1, 2024
25 checks passed
@jeremyfelder jeremyfelder deleted the nonam3e/golang/keccak branch May 1, 2024 11:08
yshekel pushed a commit that referenced this pull request May 19, 2024
## Describe the changes

This PR adds keccak bindings + passes cfg as reference in keccak cuda functions
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

Successfully merging this pull request may close these issues.

None yet

3 participants