Skip to main content

gpu_profile

Macro gpu_profile 

Source
macro_rules! gpu_profile {
    ($profiler:expr, $name:expr) => { ... };
    ($profiler:expr, $name:expr, $color:expr) => { ... };
}
Expand description

Macro for scoped GPU profiling.

§Example

use ringkernel_core::gpu_profile;

fn compute_kernel() {
    gpu_profile!(profiler, "compute_kernel", {
        // GPU work here
    });
}