mmperf

(β˜… 138)

MatMul Performance Benchmarks for a Single CPU Core comparing both hand engineered and codegen kernels.

  • .gitignore
  • .gitmodules
  • .pre-commit-config.yaml
  • CMakeLists.txt
  • generate_configs.py
  • iree_sandbox_matmul.py
  • LICENSE
  • mmperf.py
  • nodai_config_parser.py
  • README.md
  • requirements.txt
  • update_submodules.sh

# Installation Guide

1. Get the code
git clone https://github.com/mmperf/mmperf

Downloads the entire project code from GitHub to your computer.

cd mmperf

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
Prerequisites
  • APT (Debian/Ubuntu 계열) Built into Debian/Ubuntu-based Linux distributions.
apt-get install -y clang-11 clang-tools-11 libc++1-11 libc++-11-dev \

Installs directly from the APT package repository (Debian/Ubuntu-based).

sudo apt install libclang-11-dev clang-11 liblld-11-dev

Installs directly from the APT package repository (Debian/Ubuntu-based).

sudo apt install libopenblas-dev

Installs directly from the APT package repository (Debian/Ubuntu-based).

βœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. CMake

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • CMake The tool used to generate build configuration.
  • C/C++ 컴파일러 Windows needs Visual Studio (Community edition, free), macOS needs Xcode Command Line Tools, Linux needs the gcc/g++ package.
cmake -GNinja \

Type this command into your terminal and run it.

cmake --build build

Type this command into your terminal and run it.

HALIDE_DIR=/home/foo/lokal/halide/ MKL_DIR=/opt/intel/oneapi/mkl/latest/ cmake -GNinja \

Type this command into your terminal and run it.

LLD_DIR=/usr/lib/llvm-11/lib/cmake/lld cmake . -GNinja \

Type this command into your terminal and run it.

βœ… Check that an executable was created inside the build folder, then run it directly (e.g. ./build/app_name).

Pulled directly from this repo's README.

4. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
python3 -m venv ./mmperf_env

Runs the Python script (or module).

pip install -r requirements.txt

Installs the Python libraries listed in requirements.txt (or similar).

pip install -r ./external/llvm-project/mlir/python/requirements.txt

Installs the Python libraries listed in requirements.txt (or similar).

βœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

// repository documentation