tvm
|
Distributed measurement infrastructure to measure the runtime costs of tensor programs. These functions are responsible for building the tvm module, uploading it to remote devices, recording the running time costs, and checking the correctness of the output. More...
#include <tvm/auto_scheduler/loop_state.h>
#include <tvm/auto_scheduler/search_task.h>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
Go to the source code of this file.
Namespaces | |
tvm | |
runtime implementation for LibTorch/TorchScript. | |
tvm::auto_scheduler | |
Distributed measurement infrastructure to measure the runtime costs of tensor programs. These functions are responsible for building the tvm module, uploading it to remote devices, recording the running time costs, and checking the correctness of the output.
The measurement is separated into two steps: build and run. A builder builds the executable binary files and a runner runs the binary files to get the measurement results. The flow of data structures is
`ProgramBuilder` `ProgramRunner`
MeasureInput
--------------—> BuildResult
-------------—> MeasureResult
The core functions is implemented in python to utilize python's multiprocessing and error handling (see also python/tvm/auto_scheduler/measure.py
). This c++ file is just a wrapper for the python functions.