()
| 108 | |
| 109 | |
| 110 | def _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 | |
| 118 | def _numa_bind(rank: int) -> None: |
no outgoing calls
no test coverage detected