GitXplorerGitXplorer
s

migraphx_test_runner

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
d3655134027334fdbf41071fd07473ad3aaff95a

refine readme file

sscxiao committed 3 years ago
Unverified
10626e7fb078e8fa31e0c837dd0e9b012fa9b90c

some additional changes

sscxiao committed 3 years ago
Unverified
4aa0845c43fd8c3d0aeaef385aaf1d030740bb46

initial comments for test runner

sscxiao committed 3 years ago
Verified
a47a97b50c377e59c1d0295b239b620197b4d74c

Initial commit

sscxiao committed 3 years ago

README

The README file for this repository.

migraphx_test_runner

C++ and Python version of the migraphx_test_runner to run models with inputs and outputs to verify correctness. The Python version was already merged to AMDMIGraphX.

You can use the following steps to run the test runner:

Build AMDMIGraphX

You can following the steps to build AMDMIGraphX from source using the rbuild.

The command line is:

rbuild build -d deps -B build --cxx=/opt/rocm/llvm/bin/clang++

Note: The names deps and build should be used in the above command since the C++ version of test runner hard-coded these names in the file CMakeLists.txt.

Python version command line

The commands to run the Python version test runner are:

  1. Set the PYTHONPATH1
export PYTHONPATH=$PYTHONPATH:$path/AMDMIGraphX/build/lib
  1. Run the test runner
python3 test_runner.py path/to/example

The test example here uses the standard test examples with inputs and inputs in protobuf format as in the onnx repo. You can download some examples using the script.

C++ version command

The C++ version of test runner can be built as:

cmake .. -DCMAKE_PREFIX_PATH=${path}/AMDMIGraphX

where ${path}/AMDMIGraphX is the MIGraphX repo folder.

Then the test runner can be executed as:

./migraphx_test_runner path/to/example

By default, the gpu target is used, you can set the target to ref with the option -t ref.