MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / init_parallel_env

Method init_parallel_env

lightx2v_platform/base/iluvatar_cuda.py:34–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33 @staticmethod
34 def init_parallel_env():
35 if ProcessGroupNCCL is None:
36 raise RuntimeError("ProcessGroupNCCL is not available. Please check your runtime environment.")
37 pg_options = ProcessGroupNCCL.Options()
38 pg_options.is_high_priority_stream = True
39 dist.init_process_group(backend="nccl", pg_options=pg_options)
40 torch.cuda.set_device(dist.get_rank())

Callers

nothing calls this directly

Calls 2

init_process_groupMethod · 0.80
set_deviceMethod · 0.80

Tested by

no test coverage detected