Skip to main content

dynamo_nvtx_range

Macro dynamo_nvtx_range 

Source
macro_rules! dynamo_nvtx_range {
    ($name:expr) => { ... };
}
Expand description

Open a named NVTX range that closes automatically at end of scope.

let _r = dynamo_nvtx_range!("preprocess.tokenize");
// range closes here

Zero-cost when the nvtx Cargo feature is off.