Skip to content

Latest commit

 

History

History
170 lines (120 loc) · 5.56 KB

File metadata and controls

170 lines (120 loc) · 5.56 KB
Click here to see the table of contents.

Note that this README is automatically generated - don't edit!

About

Summary

  • Category: AI/ML frameworks.
  • CM GitHub repository: mlcommons@ck
  • GitHub directory for this script: GitHub
  • CM meta description for this script: _cm.json
  • CM "database" tags to find this script: install,onnxruntime,get,prebuilt,lib,lang-c,lang-cpp
  • Output cached? True

Reuse this script in your project

Install CM automation language

Pull CM repository with this automation

cm pull repo mlcommons@ck

Run this script from command line

  1. cm run script --tags=install,onnxruntime,get,prebuilt,lib,lang-c,lang-cpp[,variations]

  2. cmr "install onnxruntime get prebuilt lib lang-c lang-cpp[ variations]"

  • variations can be seen here

Run this script from Python

Click here to expand this section.
import cmind

r = cmind.access({'action':'run'
                  'automation':'script',
                  'tags':'install,onnxruntime,get,prebuilt,lib,lang-c,lang-cpp'
                  'out':'con',
                  ...
                  (other input keys for this script)
                  ...
                 })

if r['return']>0:
    print (r['error'])

Run this script via GUI

cmr "cm gui" --script="install,onnxruntime,get,prebuilt,lib,lang-c,lang-cpp"

Use this online GUI to generate CM CMD.

Run this script via Docker (beta)

cm docker script "install onnxruntime get prebuilt lib lang-c lang-cpp[ variations]"


Customization

Variations

  • Group "device"

    Click here to expand this section.
    • _cpu (default)
      • Environment variables:
        • CM_ONNXRUNTIME_DEVICE: ``
      • Workflow:
    • _cuda
      • Environment variables:
        • CM_ONNXRUNTIME_DEVICE: gpu
      • Workflow:

Default variations

_cpu

Default environment

Click here to expand this section.

These keys can be updated via --env.KEY=VALUE or env dictionary in @input.json or using script flags.

Versions

Default version: 1.16.3


Script workflow, dependencies and native scripts

Click here to expand this section.
  1. Read "deps" on other CM scripts from meta
  2. Run "preprocess" function from customize.py
  3. Read "prehook_deps" on other CM scripts from meta
  4. Run native script if exists
  5. Read "posthook_deps" on other CM scripts from meta
  6. Run "postrocess" function from customize.py
  7. Read "post_deps" on other CM scripts from meta

Script output

cmr "install onnxruntime get prebuilt lib lang-c lang-cpp[,variations]" -j

New environment keys (filter)

  • +CPLUS_INCLUDE_PATH
  • +C_INCLUDE_PATH
  • +DYLD_FALLBACK_LIBRARY_PATH
  • +LD_LIBRARY_PATH
  • +PATH
  • CM_ONNXRUNTIME_INCLUDE_PATH
  • CM_ONNXRUNTIME_LIB_PATH

New environment keys auto-detected from customize

  • CM_ONNXRUNTIME_INCLUDE_PATH
  • CM_ONNXRUNTIME_LIB_PATH

Maintainers