#![deny(missing_docs)]
#![allow(rustdoc::private_intra_doc_links)]
#![deny(rustdoc::broken_intra_doc_links)]
macro_rules! notice {
($($arg:tt)*) => {
$crate::notice::emit(::core::format_args!($($arg)*))
};
}
pub mod backend;
pub mod cpu_info;
pub mod dispatch_profile;
pub mod flat;
pub mod foundation;
#[cfg(feature = "gpu-peer")]
pub mod gpu_peer;
pub mod kernels;
pub mod notice;
pub mod numa_topology;
pub mod op_class;
pub mod sched;
pub use backend::{
Backend, BackendCapabilities, BackendError, BackendRef, DispatchBackend, KernelArg,
KernelHandle, backend_by_id, backends, cpu_backend, register_backend,
};
pub use backend::accel_op::{
AccelOpId, AccelReport, RegisteredAccelOp, accel_op_name, accel_target,
bind_accel_kernel, bind_accel_kernel_handle, dispatch_accel, register_accel_op,
registered_accel_ops,
};
pub use dispatch_profile::DispatchProfile;
pub use foundation::{HwClass, SchedTier, Variant};
pub use numa_topology::{NumaSource, NumaTopology, numa_topology};
pub use op_class::OpClass;
pub use sched::adaptive_profile::{LeafShape, WorkloadClass};
pub use sched::{BisectVariant, JobPlan};
pub use sched::arena::{join, join_context, join_default};
pub use sched::cooperative::cooperative_join_n;
pub use sched::call_site::{
CallSiteState, Placement, RegisteredKeyedSite, RegisteredSite, SiteRef, caller_site,
registered_keyed_sites, registered_sites, reset_all_sites, site_for_key, site_for_location,
};
pub use sched::cat::{CatCapability, CatError, L3Reservation};
pub use sched::{
reset_spin_stats, set_spin_adaptive, set_spin_window, spin_adapt_decisions, spin_window,
total_backend_monitor_arms, total_backend_monitor_waits, total_idle_yields,
total_join_parks, total_latch_monitor_arms, total_latch_monitor_waits,
total_long_yields, total_monitor_rounds, total_park_events, total_rescue_events,
total_self_rescues, total_sleepless_backoffs, yield_histogram,
};
pub use sched::hybrid::{
SplitReport, hybrid_auto, hybrid_auto_split, hybrid_auto_split_ranges, hybrid_pipeline,
join_hybrid,
};
pub use sched::k_join::{k_join, k_join_with_plan};
pub use sched::par_iter::{for_each_chunk, for_each_chunk_ref, for_each_indexed};
pub use sched::race::{
Agreement, Anytime, CancelToken, Settled, StatOpts, StatOutcome, explore_select, race_agree,
race_any, race_deadline, race_quorum, race_refute, race_statistical, race_tournament,
race_variants,
};
#[cfg(feature = "shared-memory-worker-reference")]
pub use sched::marshal::{Marshal, register_marshal_handler};