MCPcopy Create free account
hub / github.com/NVIDIA/cutlass / duration

Method duration

python/cutlass_cppgen/utils/profiler.py:90–94  ·  view source on GitHub ↗
(self, iterations=1)

Source from the content-addressed store, hash-verified

88 raise RuntimeError(f"CUDA Error {str(err)}")
89
90 def duration(self, iterations=1):
91 err, duration = cuda.cuEventElapsedTime(self.events[0], self.events[1])
92 if err != cuda.CUresult.CUDA_SUCCESS:
93 raise RuntimeError(f"CUDA Error {str(err)}")
94 return duration / float(iterations)
95
96
97class CUDAEventProfiler:

Callers 1

__call__Method · 0.45

Calls 1

floatFunction · 0.85

Tested by

no test coverage detected