This repository provides an python interface for PIMLibrary.
Use submodule update for pybind11 submodule once for downloading it.
cd PimPyLibrary
git submodule update --init
The command below is how to build the PimPyLibrary interface and install the python package.
export ROCM_PATH=<path to rocm installation>
pip3 install --trusted-host 'pypi.org' .
pip3 install --trusted-host 'pypi.org' custom-ops/pytorch
PIM custom ops can be run with numpy and pytorch.
To run all numpy tests
python3 -m unittest examples/numpy/test_*.py
To run all Pytorch tests
python3 -m unittest examples/pytorch/test_*.py