Profiling

time range

cupy.prof.TimeRangeDecorator

Decorator to mark function calls with range in NVIDIA profiler

cupy.prof.time_range

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

Device synchronization detection

cupyx.allow_synchronize

Allows or disallows device synchronization temporarily in the current thread.

cupyx.DeviceSynchronized

Raised when device synchronization is detected while disallowed.