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 implementsDebug).$block— block dimensions (anything that implementsDebug).
§Behaviour
- With the
tracingfeature: returns antracing::Spanentered atINFOlevel. Assign the result to a variable; the span closes when the variable is dropped. - Without the
tracingfeature: expands to().