Skip to content

set-performance-mode

Automatically generated README for this automation recipe: set-performance-mode

Category: DevOps automation

License: Apache 2.0

  • CM meta description for this script: _cm.json
  • Output cached? False

Reuse this script in your project

Install MLCommons CM automation meta-framework

Pull CM repository with this automation recipe (CM script)

cm pull repo mlcommons@cm4mlops

cmr "set system performance power mode" --help

Run this script

Run this script via CLI
cm run script --tags=set,system,performance,power,mode[,variations] 
Run this script via CLI (alternative)
cmr "set system performance power mode [variations]" 
Run this script from Python
import cmind

r = cmind.access({'action':'run'
              'automation':'script',
              'tags':'set,system,performance,power,mode'
              'out':'con',
              ...
              (other input keys for this script)
              ...
             })

if r['return']>0:
    print (r['error'])
Run this script via Docker (beta)
cm docker script "set system performance power mode[variations]" 

Variations

  • No group (any combination of variations can be selected)

    Click here to expand this section.

    • _reproducibility
      • ENV variables:
        • CM_SET_OS_PERFORMANCE_REPRODUCIBILITY_MODE: yes
  • Group "device"

    Click here to expand this section.

    • _cpu (default)
      • ENV variables:
        • CM_SET_PERFORMANCE_MODE_OF: cpu
  • Group "performance-mode"

    Click here to expand this section.

    • _performance (default)
      • ENV variables:
        • CM_SET_PERFORMANCE_MODE: performance
  • Group "power"

    Click here to expand this section.

    • _power
      • ENV variables:
        • CM_SET_PERFORMANCE_MODE: power
Default variations

_cpu,_performance

Native script being run


Script output

cmr "set system performance power mode [variations]"  -j