#gpu #stark #winterfell

miden-gpu

GPU acceleration for the Miden VM prover

4 releases (2 breaking)

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

#674 in Cryptography

Download history 1/week @ 2024-08-12 26/week @ 2024-09-16 16/week @ 2024-09-23 8/week @ 2024-09-30 208/week @ 2024-10-28 57/week @ 2024-11-04

265 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