tvm_tirx.testing.bench.CudaProfiler#
- class tvm_tirx.testing.bench.CudaProfiler(*args, **kwargs)#
Bases:
objectA lightweight wrapper around T.timer_* CUDA intrinsics.
Stores repeated arguments used by timer_init/start/end/finalize so users can call concise methods in kernels. Intended to mirror Pipeline/TileScheduler helpers.
When
profiler_enabledis False (or a false-y Expr), calls toinit/start/end/finalizebecome no-ops. This allows constructing a profiler unconditionally and eliminating externalif PROFILER_ON:guards.