plot_matmul.py runs the matrix-multiplication benchmark and plots its timing
results.
- Python 3.12 in the project's
uvenvironment matplotlib, installed withuv pip install matplotlibmcr, an external command-line program that runsmatmul.cu
mcr is not a Python package and cannot be installed from
requirements.txt. It must be installed separately and available on the
shell's PATH. Verify that the script can find it with:
command -v mcrsource .venv/bin/activate
python plot_matmul.pyOn every run, the script clears the existing files in plots/ and saves the
new graph as plots/matmul_benchmark.png.