cubecl_server/device_events/mod.rs
1//! Device events, and the two things built on them.
2//!
3//! The C-family device APIs — CUDA and HIP — expose the same event model, and
4//! the backends over them were each writing the same two types against it: a
5//! fence handed out so a caller can wait on a stream outside the server's lock,
6//! and a profiler that times work on the device's own clock. [`EventApi`] is
7//! the seam: a backend spells the driver calls, and [`EventFence`] and
8//! [`EventProfiler`] are written once above them.
9
10mod base;
11mod event;
12mod fence;
13mod profiler;
14
15pub use base::*;
16pub use event::*;
17pub use fence::*;
18pub use profiler::*;