mod captured_graph;
pub(crate) mod common;
mod communicator;
pub mod traits;
pub mod cpu;
#[cfg(feature = "cuda")]
pub mod cuda;
#[cfg(feature = "wgpu")]
pub mod wgpu;
#[cfg(any(feature = "cuda", feature = "wgpu"))]
pub(crate) use common::AllocGuard;
pub(crate) use common::DefaultAllocator;
#[cfg(any(feature = "cuda", feature = "wgpu"))]
pub(crate) use common::compute_contiguous_strides;
pub use common::{AllocationStats, Allocator, Graph, NoOpGraph, TrackingAllocator};
pub(crate) use common::{
CopyIntoPlan, cap_ipow_exponent, compute_broadcast_shape, ensure_contiguous, normalize_dim,
pow_scalar_output_dtype, row_layout, validate_arange, validate_binary_dtypes,
validate_copy_into, validate_eye, validate_host_write, validate_rand_into,
};
#[cfg(feature = "distributed-gpu")]
pub use communicator::HierarchicalCommunicator;
#[cfg(feature = "distributed")]
pub use communicator::NexarNetCommunicator;
pub use communicator::{
AbortOnPanic, Communicator, CommunicatorGroup, LocalCommunicator, NoOpCommunicator,
ParallelDim, ReduceOp, StreamSyncOps,
};
#[cfg(feature = "nccl")]
pub use cuda::{NCCL_ID_BYTES, NcclCommunicator, NcclId};
pub use captured_graph::CapturedGraph;
pub use traits::{Device, DeviceArch, DeviceCaps, DeviceProfile, Runtime, RuntimeClient};