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

Add Plonk functions #17

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add Plonk functions #17

wants to merge 3 commits into from

Conversation

bigsky77
Copy link

This pull request adds support for copying scalars from device to host, and for batch multiple for scalars.

Reason: Keep icicle functions outside of gnark/plonk codebase.

@bigsky77 bigsky77 requested a review from jeremyfelder January 31, 2024 17:09
Comment on lines 39 to 47
G := new(errgroup.Group)
G.Go(func() (err error) {
ret := goicicle.CudaMemCpyDtoH[fr.Element](outHost, a_device, sizeBytes)
if ret != 0 {
err = fmt.Errorf("Memory copy error")
}
return
})
G.Wait()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats the reason for using goroutine and Wait for a single operation with no other parallel operations?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to remove.

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.

2 participants