Skip to content

MSM performance benefits for Groth16 #54

@waamm

Description

@waamm

Hi! After quickly replacing the VariableBaseMSM::multi_scalar_mul invocations here with msm_cuda::multi_scalar_mult_arkworks, I am not noticing any performance difference. Does that make sense, or am I using it incorrectly? I'm using a Tesla T4.

Edit: Running cargo build --release --features=bn254 -vv shows a lot of stable-x86_64-unknown-linux-gnu... and after installing nvidia-cuda-toolkit, I think I am having gcc incompatibility issues

Edit2: It compiled now after updating CUDA. Benchmark is failing:

     Running benches/msm.rs (target/release/deps/msm-933742322995d626)
Benchmarking CUDA/2**23: Warming up for 3.0000 serror: bench failed, to rerun pass `--bench msm`

Caused by:
  process didn't exit successfully: `/home/wicher/sppark/poc/msm-cuda/target/release/deps/msm-933742322995d626 --bench` (signal: 11, SIGSEGV: invalid memory reference)

Edit3: Seems to work now for some reason. Is there a specific reason this library uses v0.3 of arkworks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions