Before You Start

Configure environment variables by referring to Environment Setup. Then, you can directly use msKPP.

  • The Domain-Specific Language (DSL) solution for operators can be implemented in any directory. Pay attention to the following points during the implementation:
    • Before simulating DSL operators, you need to import instructions for tensor, chip, and operator implementation (all named in lowercase).
    • Use the with statement to enable the entry of the operator implementation code. The enable_trace and enable_metrics APIs can be used to enable the trace dotting diagram and instruction statistics functions. For details, see main.py in Analyzing Extreme Performance.
    • For details about the instruction APIs, see Description of msKPP External APIs.
  • If you need the instruction proportion pie chart (instruction_cycle_consumption.html), install the third-party Python library plotly as it is a dependency for generating the pie chart.
    pip3 install plotly