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

Build gpu code with build tags and add Dockerfile #2

Open
wants to merge 10 commits into
base: gpu-encoder-no-blob-batching
Choose a base branch
from

Conversation

dmanc
Copy link
Collaborator

@dmanc dmanc commented Jul 18, 2024

Why are these changes needed?

This change will make it so we can build the gpu and cpu components separately. So building the gpu code will require specifying the tag go build -tags gpu -o ./bin/server ./cmd/encoder. Results in some duplicate code but it's worth it for now to maintain the compatibility with the former cpu only builds.

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@dmanc dmanc requested a review from bxue-l2 July 18, 2024 04:38
Copy link
Owner

@bxue-l2 bxue-l2 left a comment

Choose a reason for hiding this comment

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

maybe add a new function in the interface


var _ encoding.Prover = &Prover{}

func NewProver(config *kzg.KzgConfig, loadG2Points bool) (*Prover, error) {
Copy link
Owner

Choose a reason for hiding this comment

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

would be good if we don't duplicate code

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