class_docstr: Raised when device synchronization is detected while disallowed.
  
  .. warning::
  
     This API has been deprecated in CuPy v10 and will be removed in future
     releases.
  
  .. seealso:: :func:`cupyx.allow_synchronize`
code: def __init__(self, message=None):
      if message is None:
          message = (
              "Device synchronization was detected while disallowed."
          )
      super().__init__(message)
  
file_path: cupy/cupy/_core/syncdetect.py
imports: import contextlib
  import threading
  import warnings
label_desc: Use image node_id 1 to create a new DeviceSynchronized object from inherited base classes: RuntimeError with example: obj = DeviceSynchronized(message)