#gpu #stark #winterfell

miden-gpu

GPU acceleration for the Miden VM prover

5 releases (3 breaking)

0.4.0 Nov 27, 2024
0.3.1 Nov 2, 2024
0.3.0 Nov 2, 2024
0.2.0 Jun 19, 2024
0.1.0 Apr 16, 2024

#733 in Cryptography

Download history 23/week @ 2024-09-15 17/week @ 2024-09-22 10/week @ 2024-09-29 131/week @ 2024-10-27 128/week @ 2024-11-03 11/week @ 2024-11-10 5/week @ 2024-11-17 152/week @ 2024-11-24 12/week @ 2024-12-01

184 downloads per month
Used in 2 crates (via miden-prover)

MIT license

81KB
1.5K SLoC

Metal Shading Language 833 SLoC // 0.2% comments Rust 476 SLoC // 0.1% comments

miden-gpu

GPU acceleration for the Miden VM prover.

Build & Test

# recompile shaders
make shaders

# run tests
cargo test

# run benchmarks
cargo bench

Example usage


let mut row_hasher = RowHasher::new(lde_domain_size, num_base_columns, HashFn::Rpx256);
row_hasher.update(segments);
let row_hashes = row_hasher.finish().await;

let tree_nodes = build_merkle_tree(&row_hashes, HashFn::Rpx256);

License

This project is MIT licensed.

Acknowledgements

This project was originally developed as part of the ministark project by Andrew Milson.

Dependencies

~0.3–1.3MB
~13K SLoC