MCPcopy Create free account
hub / github.com/ml-explore/mlx / bandwidth_gb

Function bandwidth_gb

benchmarks/python/fft_bench.py:14–18  ·  view source on GitHub ↗
(runtime_ms, system_size)

Source from the content-addressed store, hash-verified

12
13
14def bandwidth_gb(runtime_ms, system_size):
15 bytes_per_fft = np.dtype(np.complex64).itemsize * 2
16 bytes_per_gb = 1e9
17 ms_per_s = 1e3
18 return system_size * bytes_per_fft / runtime_ms * ms_per_s / bytes_per_gb
19
20
21def run_bench(system_size, fft_sizes, backend="mlx", dim=1):

Callers 1

run_benchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected