(x)
| 24 | bw[i][j] = SZ / t / 1e9 # GB/s |
| 25 | |
| 26 | def fmt(x): |
| 27 | c = "green" if x > 50 else "yellow" if x > 20 else "red" |
| 28 | return colored(f"{x:6.1f}", c) |
| 29 | |
| 30 | # header |
| 31 | print(" " * 8 + " ".join(f"{'d'+str(j):>6}" for j in range(GPUS))) |
no test coverage detected