Skip to content

Not able to change stack size in cargo bench. #1075

@dreamATD

Description

@dreamATD

Consider the deeply nested expressions that might be used in precompiled circuits, we should adjust the stack size. For example, I adjust it to 32M when running weierstrass addition in the rust code. However, I haven't find a good way to adjust the stack size in benches/. I tried:

  • RUST_MIN_STACK=... cargo bench -p ceno_zkvm --bench weierstrass_add
  • RUSTFLAGS="-C link-args=-Wl,-z,stack-size=33554432" cargo bench --bench weierstrass_add

Neither of them works.

Now I temporarily remove criterion_main! and use a self-defined main function to resolve the issue, while waiting for a better way to do it.

For more details, see the following:
#1072

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions