MCPcopy
hub / github.com/hpcaitech/ColossalAI / synchronize

Method synchronize

colossalai/accelerator/cpu_accelerator.py:57–61  ·  view source on GitHub ↗

Synchronize the current process.

(self, device: Union[torch.device, int] = None)

Source from the content-addressed store, hash-verified

55 raise RuntimeError("this method is not supported for cpu accelerator")
56
57 def synchronize(self, device: Union[torch.device, int] = None):
58 """
59 Synchronize the current process.
60 """
61 raise RuntimeError("this method is not supported for cpu accelerator")
62
63 def is_available(self):
64 """

Callers 15

benchmark_funcFunction · 0.45
_post_backwardMethod · 0.45
current_timeMethod · 0.45
startMethod · 0.45
stopMethod · 0.45
startMethod · 0.45
endMethod · 0.45
_post_backwardMethod · 0.45
startMethod · 0.45
finishMethod · 0.45
backwardMethod · 0.45
backward_by_gradMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_diffusersFunction · 0.36
test_torch_diffusersFunction · 0.36
run_fwd_bwd_iter_inputFunction · 0.36
check_all_gatherFunction · 0.36
check_reduce_scatterFunction · 0.36
check_all_reduceFunction · 0.36
test_copy_kv_to_cachesFunction · 0.36
test_context_attentionFunction · 0.36
test_flash_decodingFunction · 0.36