Crates.io | treed_gpu |
lib.rs | treed_gpu |
version | 0.1.4 |
source | src |
created_at | 2024-06-04 07:44:42.393275 |
updated_at | 2024-06-04 09:06:24.63738 |
description | Build TreeD with GPU |
homepage | |
repository | https://github.com/gh-efforts/treed_gpu |
max_upload_size | |
id | 1260824 |
size | 57,400 |
Build TreeD with GPU
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);