Skip to main content

kernel_launch_span

Macro kernel_launch_span 

Source
macro_rules! kernel_launch_span {
    ($name:expr, $grid:expr, $block:expr) => { ... };
}
Expand description

Emit a tracing span for a kernel launch.

§Arguments

  • $name — kernel function name (string literal or &str).
  • $grid — grid dimensions (anything that implements Debug).
  • $block — block dimensions (anything that implements Debug).

§Behaviour

  • With the tracing feature: returns an tracing::Span entered at INFO level. Assign the result to a variable; the span closes when the variable is dropped.
  • Without the tracing feature: expands to ().