MCPcopy Create free account
hub / github.com/FlashSampling/FlashSampling / _print_gpu_topology

Function _print_gpu_topology

src/fused_mm_sampling/tp_info.py:110–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108
109
110def _print_gpu_topology() -> None:
111 try:
112 topo = subprocess.check_output(["nvidia-smi", "topo", "-m"], text=True).strip()
113 print(f"GPU topology:\n{topo}")
114 except (FileNotFoundError, subprocess.CalledProcessError) as e:
115 warnings.warn(f"Failed to get GPU topology: {e}", stacklevel=2)
116
117
118def _numa_bind(rank: int) -> None:

Callers 2

_torchrun_workerFunction · 0.85
_distributed_workerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected