Skip to main content

khal_std/sync/
mod.rs

1//! CPU- and CUDA-compatible wrappers for `spirv_std::arch` functions.
2//!
3//! On `target_arch = "spirv"`, these delegate to the real SPIR-V intrinsics.
4//! On `target_arch = "nvptx64"`, these use LLVM NVVM intrinsics for CUDA.
5//! On the CPU, they provide functional equivalents using `std::sync` primitives.
6//!
7//! Shader code should import from this module instead of `spirv_std::arch` directly
8//! to enable CPU and CUDA execution.
9
10mod atomics;
11mod barriers;
12mod subgroup;
13
14pub use atomics::*;
15pub use barriers::*;
16pub use subgroup::*;