Skip to content

Add MXR caching example for the AMD GPU EP - #125

Draft
ivarusic-amd wants to merge 1 commit into
mainfrom
examples/mxr-cache-demo
Draft

ivarusic-amd wants to merge 1 commit into
mainfrom
examples/mxr-cache-demo

Conversation

@ivarusic-amd

Copy link
Copy Markdown
Collaborator

Adds examples/mxr_cache, a self-contained script and README showing how to enable MIGraphX .mxr caching on the AMD GPU plugin EP from onnxruntime-python.

The script registers amdgpu-ep.dll out of the installed Windows ML EP package and exercises each way of enabling caching -- the cache_dir provider option, the ORT_MIGRAPHX_CACHE_DIR environment variable, and EPContext -- reporting whether the compiled program was loaded from disk and whether a cached program returns the same outputs as a freshly compiled one.

The example model is downloaded by the user rather than checked in; the README links to ResNet-50 in the ONNX Model Zoo.

Adds examples/mxr_cache, a self-contained script and README showing how to
enable MIGraphX .mxr caching on the AMD GPU plugin EP from onnxruntime-python.

The script registers amdgpu-ep.dll out of the installed Windows ML EP package
and exercises each way of enabling caching -- the cache_dir provider option,
the ORT_MIGRAPHX_CACHE_DIR environment variable, and EPContext -- reporting
whether the compiled program was loaded from disk and whether a cached program
returns the same outputs as a freshly compiled one.

The example model is downloaded by the user rather than checked in; the README
links to ResNet-50 in the ONNX Model Zoo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant