forked from ami-iit/onnx-cpp-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pixi.toml
39 lines (34 loc) · 945 Bytes
/
pixi.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[project]
name = "onnx-cpp-benchmark"
version = "0.2.0"
description = "Simple tool to profile onnx inference with C++ APis."
authors = ["Silvio Traversaro <[email protected]>"]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64", "linux-aarch64", "osx-arm64"]
[tasks]
# Configures CMake
configure = { cmd = [
"cmake",
# Use the cross-platform Ninja generator
"-G",
"Ninja",
# The source is in the root directory
"-S",
".",
# We wanna build in the .build directory
"-B",
".build",
# Build in Release
"-DCMAKE_BUILD_TYPE=Release",
] }
# Build the executable but make sure CMake is configured first.
build = { cmd = ["ninja", "-C", ".build"], depends_on = ["configure"] }
# Start the built executable
onnx-cpp-benchmark = { cmd = ".build/onnx-cpp-benchmark"}
[dependencies]
onnxruntime-cpp = "1.*"
cli11 = "2.*"
compilers = "*"
ninja = "*"
cmake = "*"
pkg-config = "*"