Skip to content

run-mlperf-power-server

Automatically generated README for this automation recipe: run-mlperf-power-server

Category: MLPerf benchmark support

License: Apache 2.0

  • Notes from the authors, contributors and users: README-extra

  • 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 "run mlc mlcommons mlperf power server power-server" --help

Run this script

Run this script via CLI
cm run script --tags=run,mlc,mlcommons,mlperf,power,server,power-server [--input_flags]
Run this script via CLI (alternative)
cmr "run mlc mlcommons mlperf power server power-server " [--input_flags]
Run this script from Python
import cmind

r = cmind.access({'action':'run'
              'automation':'script',
              'tags':'run,mlc,mlcommons,mlperf,power,server,power-server'
              'out':'con',
              ...
              (other input keys for this script)
              ...
             })

if r['return']>0:
    print (r['error'])
Run this script via Docker (beta)
cm docker script "run mlc mlcommons mlperf power server power-server" [--input_flags]

Script flags mapped to environment

  • --device_port=valueCM_MLPERF_POWER_DEVICE_PORT=value
  • --device_type=valueCM_MLPERF_POWER_DEVICE_TYPE=value
  • --interface_flag=valueCM_MLPERF_POWER_INTERFACE_FLAG=value
  • --ntp_server=valueCM_MLPERF_POWER_NTP_SERVER=value
  • --screen=valueCM_MLPERF_POWER_SERVER_USE_SCREEN=value

Default environment

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

  • CM_MLPERF_POWER_NTP_SERVER: time.google.com
  • CM_MLPERF_POWER_INTERFACE_FLAG: ``
  • CM_MLPERF_POWER_DEVICE_TYPE: 49
  • CM_MLPERF_POWER_SERVER_ADDRESS: 0.0.0.0
  • CM_MLPERF_POWER_SERVER_PORT: 4950
  • CM_MLPERF_POWER_DEVICE_PORT: /dev/usbtmc0
  • CM_MLPERF_POWER_SERVER_USE_SCREEN: no

Native script being run


Script output

cmr "run mlc mlcommons mlperf power server power-server " [--input_flags] -j