tree: 2e0bc5c2e7cfa25d410e8d156778e06255de5ae8 [path history] [tgz]
  1. scripts/
  2. __init__.py
  3. array_interop.py
  4. array_interop_test.py
  5. binding.h
  6. CMakeLists.txt
  7. export.def
  8. flags.py
  9. flags_test.py
  10. function.py
  11. function_test.py
  12. hal.cc
  13. hal.h
  14. hal_test.py
  15. initialize_module.cc
  16. invoke.cc
  17. invoke.h
  18. README.md
  19. status_utils.cc
  20. status_utils.h
  21. system_api.py
  22. system_api_test.py
  23. tracing.py
  24. unix_version.lds
  25. vm.cc
  26. vm.h
  27. vm_test.py
runtime/bindings/python/iree/runtime/README.md

IREE Python Runtime Components

This package provides an API for running compiled IREE binaries and interfacing with the hardware-abstraction-layer.

Tracing

Execution of calls against binaries can be traced for later replay (i.e. via tools like iree-run-module). This can be set up either explicitly or via environment variables.

To trace via environment variable, set IREE_SAVE_CALLS to a directory to dump traces into. Each created SystemContext will result in one calls.yaml file (with an index appended to the stem for multiples). Any referenced module binaries will be dumped into the same directory and referenced by the YAML file.

Explicit API

tracer = iree.runtime.Tracer(some_dir)
config = iree.runtime.Config(driver, tracer)
...