khal-std 0.2.0

GPU standard library for khal compute shaders, with cross-platform primitives compiling to SPIR-V, CUDA PTX, and CPU targets.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! CPU- and CUDA-compatible wrappers for `spirv_std::arch` functions.
//!
//! On `target_arch = "spirv"`, these delegate to the real SPIR-V intrinsics.
//! On `target_arch = "nvptx64"`, these use LLVM NVVM intrinsics for CUDA.
//! On the CPU, they provide functional equivalents using `std::sync` primitives.
//!
//! Shader code should import from this module instead of `spirv_std::arch` directly
//! to enable CPU and CUDA execution.

mod atomics;
mod barriers;
mod subgroup;

pub use atomics::*;
pub use barriers::*;
pub use subgroup::*;