ab_proof_of_space_gpu/
lib.rs

1//! Proof of space plotting utilities for GPU (Vulkan/Metal).
2//!
3//! Just like in `ab-proof-of-space`, max supported `K` within range `15..=25` due to internal data
4//! structures used.
5
6#![cfg_attr(target_arch = "spirv", no_std)]
7#![feature(array_chunks, bigint_helper_methods)]
8
9// This is used for benchmarks of isolated shaders externally, not for general use
10#[doc(hidden)]
11pub mod shader;
12
13// TODO: Remove gate after https://github.com/Rust-GPU/rust-gpu/pull/249
14#[cfg(not(target_arch = "spirv"))]
15use ab_core_primitives::pos::PosProof;
16
17// TODO: Remove gate after https://github.com/Rust-GPU/rust-gpu/pull/249
18#[cfg(not(target_arch = "spirv"))]
19const _: () = {
20    assert!(PosProof::K >= 15 && PosProof::K <= 25);
21};