# tensorplay.cuda.set_sync_debug_mode

Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.set_sync_debug_mode.html

# tensorplay.cuda.set_sync_debug_mode

tensorplay.cuda.set_sync_debug_mode(debug_mode: [int](https://docs.python.org/3/library/functions.html#int) | [str](https://docs.python.org/3/library/stdtypes.html#str)) &#x2192; [None](https://docs.python.org/3/library/constants.html#None)[[source]](../_modules/tensorplay/cuda.html#set_sync_debug_mode)

Set the debug mode for cuda synchronizing operations.

Not enforced by this TensorPlay build; validated for signature parity.

Parameters:

debug_mode ([str](https://docs.python.org/3/library/stdtypes.html#str) or [int](https://docs.python.org/3/library/functions.html#int)) – if “default” or 0, don’t error or warn on synchronizing operations,
if “warn” or 1, warn on synchronizing operations, if “error” or 2, error out synchronizing operations.
