-
Notifications
You must be signed in to change notification settings - Fork 655
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[benchmark] build snap package for ubuntu (#1055)
Change-Id: Id13f237649bb81f4b980601fb7393998438d5080
- Loading branch information
Showing
5 changed files
with
57 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../gradle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../gradlew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: djlbench | ||
version: '0.12.0' | ||
title: DJL Benhmark | ||
license: Apache-2.0 | ||
summary: A machine learning benchmarking toolkit | ||
description: | | ||
djlbench is a command line tool that allows you to benchmark the | ||
model on all different platforms for single-thread/multi-thread | ||
inference performance. | ||
Currently djlbench support the models from the following framework: | ||
- PyTorch | ||
- TensorFlow | ||
- Apachmark MXNet | ||
- PaddlePaddle | ||
- ONNXRuntime | ||
- TensorFlow Lite | ||
- Neo DLR | ||
- XGBoost | ||
base: core18 | ||
grade: stable | ||
confinement: classic | ||
|
||
apps: | ||
djlbench: | ||
command: benchmark-$SNAPCRAFT_PROJECT_VERSION/bin/benchmark | ||
environment: | ||
JAVA_HOME: "$SNAP/usr/lib/jvm/java-11-openjdk-amd64" | ||
PATH: "$SNAP/bin:$PATH:$SNAP/usr/lib/jvm/java-11-openjdk-amd64/bin" | ||
plugs: | ||
- home | ||
- network | ||
- cups-control | ||
|
||
parts: | ||
djlbench: | ||
plugin: gradle | ||
source: https://github.com/deepjavalibrary/djl.git | ||
# source-tag: v$SNAPCRAFT_PROJECT_VERSION | ||
gradle-output-dir: extensions/benchmark/build/libs | ||
gradle-options: [ -Pstaging, ':extensions:benchmark:dT' ] | ||
override-build: | | ||
snapcraftctl build | ||
tar xvf $SNAPCRAFT_PART_BUILD/extensions/benchmark/build/distributions/benchmark-*.tar -C $SNAPCRAFT_PART_INSTALL/ | ||
rm -rf $SNAPCRAFT_PART_INSTALL/jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters