Profiling

Time range

cupy.prof.TimeRangeDecorator([message, …])

Decorator to mark function calls with range in NVIDIA profiler

cupy.prof.time_range(message[, color_id, …])

A context manager to describe the enclosed block as a nested range

Timing helper

cupyx.time.repeat(func[, args, kwargs, …])

Timing utility for measuring time spent by both CPU and GPU.

Device synchronization detection

cupyx.allow_synchronize(allow)

Allows or disallows device synchronization temporarily in the current thread.

cupyx.DeviceSynchronized([message])

Raised when device synchronization is detected while disallowed.