Running Modes
Currently, the Autotuner can be used in two modes with two different command line tools, llvm-autotune and auto-tuner.
- The llvm-auotune allows users to lead the tuning process and provides auxiliary functions to work with the compiler. Compared with the auto-tuner, the llvm-auotune greatly simplifies the configuration and tuning procedure. The llvm-auotune is recommended because it is available out-of-the-box.
- The auto-tuner is a traditional tuning tool that manages the entire tuning process. You need to adapt the configuration file to set the details during the tuning, including how to compile and run code, and how to obtain the performance information and tunable parameters.
The following uses the coremark as an example to describe how to perform automatic tuning. The release package of the BiSheng compiler does not contain the coremark. Obtain the coremark from the community. For details about how to use llvm-auotune, see Usage.
Parent topic: Running the Autotuner