treed_gpu

Crates.iotreed_gpu
lib.rstreed_gpu
version0.1.4
sourcesrc
created_at2024-06-04 07:44:42.393275
updated_at2024-06-04 09:06:24.63738
descriptionBuild TreeD with GPU
homepage
repositoryhttps://github.com/gh-efforts/treed_gpu
max_upload_size
id1260824
size57,400
XTY (xutianyi1999)

documentation

README

treed_gpu

Build TreeD with GPU

Usage

link treed_gpu crate

Cargo.toml

[dependencies]
treed_gpu = "*"

main.rs

let unsealed_file = "unsealed";
let treed_file = "treed";
let unsealed_size = std::fs::metadata(unsealed_file)?.len();
let mut buf = vec![0u8; unsealed_size as usize * 2 - 32];

// use 4GB GPU memory
let tree_root = treed_gput::build_treed(unsealed_file, treed_file, &mut buf, 4 * 1024 * 1024 * 1024);

Example

Commit count: 37

cargo fmt