-
Notifications
You must be signed in to change notification settings - Fork 87
Add a new variant of an existing binary
The harness supports a number of commonly used building scripts of the benchmarking binaries for your favorite framework. The building scripts are organized in the following convention:
All building scripts are placed under specifications/frameworks
directory. Each framework is placed under its own directory (e.g. specifications/frameworks/caffe2
). The subdirectory names are different supported platforms: android
, host
, windows
etc. (The directory name must match the return value from the getName() method of the platform class.) There is a shell script called build.sh
(build.bat
for windows
platform). This script is called by the harness by default to build the binary for the platform specified using --platform
argument.
In some cases, however, you may want to build the binary using different flags from the default script. For example, you may want to use clang
to build the binary instead of using gcc
. In this case, you create a new directory under the platform directory, and add a script build.sh
(build.bat
for windows
) with your custom build commands. Then, when you launch the benchmark runs, use argument --platform <platform>/<your directory name>
. Then your custom build script is invoked. For example, if you want to use clang
to build the caffe2
benchmark binary on android platform, you can specify --platform android/clang
in your command line.
- Experiment with docker
- Run FAI-PEP for the first time
- Meta data file explained
- Work with iOS
- Work on Power/Energy
- Run Imagenet validate dataset
- Convert ONNX models to Caffe2 models
- Presentations