5 releases
0.1.4 | Jun 4, 2024 |
---|---|
0.1.3 | Jun 4, 2024 |
0.1.2 | Jun 4, 2024 |
0.1.1 | Jun 4, 2024 |
0.1.0 | Jun 4, 2024 |
#174 in #gpu
20KB
420 lines
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);
Dependencies
~0.7–1.1MB
~22K SLoC