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

Set opt optimization level to 2 #1355

Closed
wants to merge 5 commits into from
Closed

Conversation

samoht9277
Copy link
Collaborator

TITLE

Description

Description of the pull request changes and motivation.

Type of change

Please delete options that are not relevant.

  • New feature
  • Bug fix
  • Optimization
  • Refactor

Checklist

  • “Hotfix” to testnet, everything else to staging
  • Linked to Github Issue
  • This change depends on code or research by an external entity
    • Acknowledgements were updated to give credit
  • Unit tests added
  • This change requires new documentation.
    • Documentation has been added/updated.
  • This change is an Optimization
    • Benchmarks added/run
  • Has a known issue
  • If your PR changes the Operator compatibility (Ex: Upgrade prover versions)
    • This PR adds compatibility for operator for both versions and do not change batcher/docs/examples
    • This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

@samoht9277 samoht9277 changed the base branch from testnet to staging November 4, 2024 20:01
@@ -41,6 +41,8 @@ FROM lukemathwalker/cargo-chef:latest-rust-1 AS chef

FROM chef AS planner

ENV RUSTFLAGS="-C codegen-units=256 -C incremental=true -C opt-level=0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove the incremental flag. It doesn't really help in CI environments and generates a lot of data for the cache.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also, you might want to use lto=false.

Copy link
Contributor

Choose a reason for hiding this comment

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

It is caching the files though

Copy link
Contributor

Choose a reason for hiding this comment

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

Also lto = false is the default of release

Copy link
Contributor

Choose a reason for hiding this comment

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

I removed the incremental, cargo chef mentions it's redudant and increases the amount of layers in docker file. lto false seems to not change anything since the default is release.

Copy link
Contributor

@MauroToscano MauroToscano left a comment

Choose a reason for hiding this comment

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

Testing configurations, don't merge

@MauroToscano MauroToscano changed the title Set ust optimization level to 0 Set ust optimization level to 1 Nov 5, 2024
@MauroToscano MauroToscano marked this pull request as draft November 5, 2024 20:57
@MauroToscano MauroToscano changed the title Set ust optimization level to 1 Set opt optimization level to 2 Nov 5, 2024
@JuArce JuArce deleted the rust-optimization-level branch November 28, 2024 14:47
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.

4 participants