Expand description
Shared type vocabulary for the baracuda CUDA stack.
This crate contains only pure-data types — no I/O, no libloading, no
runtime machinery. It’s intended to be a cheap dependency for any crate
(including user-authored CUDA wrappers) that wants to speak baracuda’s
type vocabulary without pulling in the loader infrastructure.
§Modules
numeric—Half,BFloat16,Complex32,Complex64.device_repr— theDeviceReprtrait marking ABI-stable types.kernel_arg— theKernelArgtrait for marshalling kernel arguments.version—CudaVersionand theFeatureenum withsupports.status— theCudaStatustrait every library’s status enum implements.stream_mode— theStreamModeenum (Legacy vs PerThread default streams).
Re-exports§
pub use device_repr::DeviceRepr;pub use host_slice::HostSlice;pub use kernel_arg::KernelArg;pub use numeric::BFloat16;pub use numeric::Complex32;pub use numeric::Complex64;pub use numeric::Half;pub use status::CudaStatus;pub use stream_mode::StreamMode;pub use version::supports;pub use version::CudaVersion;pub use version::Feature;pub use zero_bits::ValidAsZeroBits;
Modules§
- device_
repr - The
DeviceReprmarker trait: types with a stable, ABI-compatible layout suitable for being laid out in GPU-visible memory. - external_
impls - Third-party type integrations.
- host_
slice HostSlice— generic abstraction over “things that are a slice ofT”.- kernel_
arg - The
KernelArgtrait: a uniform way to hand values tocuLaunchKernel/cudaLaunchKernel, which expectvoid**— an array of pointers to each argument. - numeric
- Numeric types used across the CUDA stack.
- status
- A uniform interface every NVIDIA-library status/return-code enum implements.
- stream_
mode - The default-stream semantics switch.
- version
- CUDA version identifier + feature-gating enum.
- zero_
bits ValidAsZeroBits— safety marker for zero-initializable types.