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

Multithreading proof generation from wasm #9

Open
wants to merge 1 commit into
base: testnet3
Choose a base branch
from

Conversation

evanmarshall
Copy link

@evanmarshall evanmarshall commented Apr 24, 2023

As for 4/24/23, this is the current npm @demox-labs/aleo-sdk & @demox-labs/aleo-sdk-web

To build the serial version:

  1. wasm-pack build --release

To build the parallel version:

  1. Update the .cargo/config to:
[target.'cfg(not(target_arch = "wasm32"))']
rustflags = ["-C", "target-cpu=native"]

[target.wasm32-unknown-unknown]
rustflags = ["-C", "target-feature=+atomics,+bulk-memory,+mutable-globals", "-C", "link-arg=--max-memory=4294967296"]

[unstable]
build-std = ["panic_abort", "std"]
  1. wasm-pack build --release --target web --out-dir pkg-parallel -- --features "frontend-parallel" --no-default-features

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.

1 participant